function main(_0xce706a){
_0xce706a['cancel']();
let _0x3bafa3=_0xce706a['getPlayer']();
let _0x51e378=_0x3bafa3['getLook']();
let _0x4bbf38=_0x3bafa3['getPosition']();
let _0x39f019=_0xce706a['getValue']('entityItem');
let _0x48458f=_0x39f019['getItem']()['getItem']()['getId']();
let _0x30135c=_0x39f019['getItem']()['getCount']();
let _0x8068e1=_0x39f019['getItem']()['getData']();
let _0x26f0f2=_0xce706a['getWorld']()['spawnNpc']('item','default',_0x4bbf38['x'],_0x4bbf38['y']+0x1,_0x4bbf38['z']);
_0x26f0f2['setMotion'](_0x51e378['x']*0.25,_0x51e378['y']*0.5,_0x51e378['z']*0.25);
_0x26f0f2['setMorph'](_0x48458f!='huntclient:shotgun'?mappet['createMorph']('{
Hitbox:{
Eye:0.9f,Sneak:0.5f,Enabled:1b,Height:0.5f,Width:0.5f
}
,Skin:"b.a:empty/skins/texture.png",BodyParts:[{
T:[0.0f,-0.5f,0.0f],Limb:"cube",Morph:{
Lighting:1b,Name:"item",Stack:{
id:"'+_0x48458f+'",Count:'+_0x30135c+'b,Damage:0s
}
}
}
],Settings:{
Hands:1b
}
,Name:"blockbuster.empty"
}
'):_0x26f0f2['getMorph']());
_0x26f0f2['setRotations'](_0x3bafa3['getPitch'](),_0x3bafa3['getYaw'](),_0x3bafa3['getYawHead']());
_0x26f0f2['getEntityData']()['setCompound']('tag',_0x8068e1);
_0x26f0f2['getEntityData']()['setBoolean']('onBase',mappet['box'](0x2e,0x18,0x2,0x22,0x15,0xe)['contains'](_0x26f0f2['getPosition']()));
_0x3bafa3['swingArm']();
if(_0x48458f=='hnt:medkit'&&_0x3bafa3['getEntityData']()['getBoolean']('useMedkit')){
_0x3bafa3['closeHUD']('medkit');
_0x3bafa3['getEntityData']()['setBoolean']('useMedkit',![]);
_0x3bafa3['getEntityData']()['setInt']('medkitProgress',0x0);
_0xce706a['scheduleScript'](0x5,function(){
_0x3bafa3['getArmRender'](0x0)['reset']();
}
);
}
if(_0x48458f=='hnt:gascan'&&_0x3bafa3['getEntityData']()['getBoolean']('useGascan')){
_0x3bafa3['getEntityData']()['setBoolean']('useGascan',![]);
_0xce706a['scheduleScript'](0x5,function(){
_0x3bafa3['getArmRender'](0x0)['reset']();
}
);
}
}
function pickUp(_0x2e37f5){
let _0xe6c5b9=_0x2e37f5['getSubject']();
let _0x4d4e63=_0x2e37f5['getPlayer']();
let _0x5eb455=_0x4d4e63['getPosition']();
let _0x4d1329=JSON['parse'](_0x2e37f5['getServer']()['getStates']()['getString']('laptop'));
let _0x38a278=JSON['parse'](_0x2e37f5['getServer']()['getStates']()['getString']('camera'));
let _0x2c298e=mappet['toNBT'](_0xe6c5b9['getMorph']())['getList']('BodyParts')['getCompound'](0x0)['getCompound']('Morph')['getCompound']('Stack');
let _0x19fc7e=mappet['createCompound']('{
id:"'+_0x2c298e['getString']('id')+'",Count:'+_0x2c298e['getByte']('Count')+'
}
');
let _0x2d3d9b=_0xe6c5b9['getEntityData']()['getCompound']('tag');
let _0x171332=_0x4d4e63['getMainItem']();
if(_0xe6c5b9['getPosition']()['distance'](_0x5eb455)>0x2)return;
if(!canPickup(_0x4d4e63,_0x19fc7e))return;
if(_0x2d3d9b['dumpJSON']()['length']>0x2){
_0x19fc7e['addCompound']('tag');
_0x19fc7e['setCompound']('tag',_0x2d3d9b);
}
if(_0x19fc7e['getString']('id')=='hnt:note'){
_0x2e37f5['setValue']('index',_0xe6c5b9['getEntityData']()['getInt']('index'));
_0x2e37f5['scheduleScript']('ui_note.js','main',0x0);
return;
}
if(_0x2c298e['getString']('id')['startsWith']('hnt:camera')&&(_0x171332['getItem']()['getId']()=='hnt:cameralens'||_0x171332['getItem']()['getId']()=='hnt:sdcard')){
if(_0x171332['getItem']()['getId']()=='hnt:cameralens'&&_0x2c298e['getString']('id')=='hnt:camera'){
_0xe6c5b9['setMorph'](mappet['createMorph']('{
Hitbox:{
Eye:0.9f,Sneak:0.5f,Enabled:1b,Height:0.5f,Width:0.5f
}
,Skin:"b.a:empty/skins/texture.png",BodyParts:[{
T:[0.0f,-0.5f,0.0f],Limb:"cube",Morph:{
Lighting:1b,Name:"item",Stack:{
id:"hnt:cameraupgraded",Count:'+_0x2c298e['getByte']('Count')+'b,Damage:0s
}
}
}
],Settings:{
Hands:1b
}
,Name:"blockbuster.empty"
}
'));
_0x38a278['lensUp']=!![];
_0x2e37f5['getServer']()['getStates']()['setString']('camera',JSON['stringify'](_0x38a278));
_0x4d4e63['setMainItem'](mappet['createItem']('minecraft:air'));
}
else if(_0x171332['getItem']()['getId']()=='hnt:sdcard'){
_0x38a278['memory']=0xa;
_0x2e37f5['getServer']()['getStates']()['setString']('camera',JSON['stringify'](_0x38a278));
_0x4d4e63['setMainItem'](mappet['createItem']('minecraft:air'));
}
_0x4d4e63['swingArm']();
return;
}
if(heavyItems['indexOf'](_0x19fc7e['getString']('id'))!=-0x1&&_0x171332['getItem']()['getId']()=='minecraft:air'){
_0x4d4e63['setMainItem'](mappet['createItemNBT'](_0x19fc7e));
}
else if(heavyItems['indexOf'](_0x19fc7e['getString']('id'))==-0x1){
_0x4d4e63['giveItem'](mappet['createItemNBT'](_0x19fc7e),![],![]);
}
else{
return;
}
_0x4d4e63['swingArm']();
_0xe6c5b9['remove']();
_0x2e37f5['getWorld']()['playSound']('mp.sounds:hnt.items.'+_0x2c298e['getString']('id')['split'](':')[0x1]+'_pickup',_0x5eb455['x'],_0x5eb455['y'],_0x5eb455['z']);
}
function landing(_0x424959){
if(_0x424959['getSubject']()['isPlayer']())return;
let _0x5550f6=_0x424959['getSubject']();
let _0x507beb=_0x5550f6['getPosition']();
let _0x1364c1=_0x424959['getWorld']()['getBlock'](Math['floor'](_0x507beb['x']),Math['floor'](_0x507beb['y'])-0x1,Math['floor'](_0x507beb['z']))['getBlockId']()['split'](':')['pop']();
let _0xc322f2=mappet['toNBT'](_0x5550f6['getMorph']())['getList']('BodyParts')['getCompound'](0x0)['getCompound']('Morph')['getCompound']('Stack');
let _0x171140='';
let _0x2c87f7=0x1;
switch(_0x1364c1){
case'stone1':case'stone2':case'rock1':case'rock2':case'rock3':_0x171140='minecraft:block.stone.hit';
break;
case'grass':case'yellowgrass':_0x171140='mp.sounds:hnt.items.grass_fall';
_0x2c87f7=mappet['random'](0.8,1.5);
break;
case'planks3h':case'planks3':_0x171140='minecraft:block.wood.hit';
break;
case'dirt':_0x171140='mp.sounds:hnt.items.dirt_fall';
_0x2c87f7=mappet['random'](0.8,1.3);
break;
}
if(_0x171140){
_0x424959['getWorld']()['playSound'](_0x171140,_0x507beb['x'],_0x507beb['y'],_0x507beb['z'],0x1,_0x2c87f7);
}
_0x424959['getWorld']()['playSound']('mp.sounds:hnt.items.'+_0xc322f2['getString']('id')['split'](':')[0x1]+'_pickup',_0x507beb['x'],_0x507beb['y'],_0x507beb['z'],0.5,mappet['random'](0x1,0x2));
}
function summonItem(_0x4d4098,_0x30a6ac,_0x1faa7b,_0x3d3c29,_0x16531b){
let _0x42aaba=_0x3d3c29['spawnNpc']('item','default',_0x1faa7b['x'],_0x1faa7b['y']+0.01,_0x1faa7b['z']);
if(_0x16531b!=null){
if(_0x4d4098=='huntclient:shotgun'){
_0x16531b['setString']('animation','');
_0x16531b['setBoolean']('cooldown',![]);
}
_0x42aaba['getEntityData']()['setCompound']('tag',_0x16531b);
}
if(_0x4d4098!='huntclient:shotgun'){
_0x42aaba['setMorph'](mappet['createMorph']('{
Hitbox:{
Eye:0.9f,Sneak:0.5f,Enabled:1b,Height:0.5f,Width:0.5f
}
,Skin:"b.a:empty/skins/texture.png",BodyParts:[{
T:[0.0f,-0.5f,0.0f],Limb:"cube",Morph:{
Lighting:1b,Name:"item",Stack:{
id:"'+_0x4d4098+'",Count:'+_0x30a6ac+'b,Damage:0s
}
}
}
],Settings:{
Hands:1b
}
,Name:"blockbuster.empty"
}
'));
}
return _0x42aaba;
}
© 2023 Quttera Ltd. All rights reserved.