function main(_0x33296d){
_0x33296d['cancel']();
let _0x18f397=_0x33296d['getPlayer']();
let _0x11283a=_0x18f397['getLook']();
let _0x36345f=_0x18f397['getPosition']();
let _0x45c735=_0x33296d['getValue']('entityItem');
let _0x157dc8=_0x45c735['getItem']()['getItem']()['getId']();
let _0x236821=_0x45c735['getItem']()['getCount']();
let _0x1e3018=_0x45c735['getItem']()['getData']();
let _0xc14d8=_0x33296d['getWorld']()['spawnNpc']('item','default',_0x36345f['x'],_0x36345f['y']+0x1,_0x36345f['z']);
_0xc14d8['setMotion'](_0x11283a['x']*0.25,_0x11283a['y']*0.5,_0x11283a['z']*0.25);
_0xc14d8['setMorph'](_0x157dc8!='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:"'+_0x157dc8+'",Count:'+_0x236821+'b,Damage:0s
}
}
}
],Settings:{
Hands:1b
}
,Name:"blockbuster.empty"
}
'):_0xc14d8['getMorph']());
_0xc14d8['setRotations'](_0x18f397['getPitch'](),_0x18f397['getYaw'](),_0x18f397['getYawHead']());
_0xc14d8['getEntityData']()['setCompound']('tag',_0x1e3018);
_0xc14d8['getEntityData']()['setBoolean']('onBase',mappet['box'](0x2e,0x18,0x2,0x22,0x15,0xe)['contains'](_0xc14d8['getPosition']()));
_0x18f397['swingArm']();
if(_0x157dc8=='hnt:medkit'&&_0x18f397['getEntityData']()['getBoolean']('useMedkit')){
_0x18f397['closeHUD']('medkit');
_0x18f397['getEntityData']()['setBoolean']('useMedkit',![]);
_0x18f397['getEntityData']()['setInt']('medkitProgress',0x0);
_0x33296d['scheduleScript'](0x5,function(){
_0x18f397['getArmRender'](0x0)['reset']();
}
);
}
if(_0x157dc8=='hnt:gascan'&&_0x18f397['getEntityData']()['getBoolean']('useGascan')){
_0x18f397['getEntityData']()['setBoolean']('useGascan',![]);
_0x33296d['scheduleScript'](0x5,function(){
_0x18f397['getArmRender'](0x0)['reset']();
}
);
}
}
function pickUp(_0x3173de){
let _0x2e14e0=_0x3173de['getSubject']();
let _0x1335b1=_0x3173de['getPlayer']();
let _0xfabf6a=_0x1335b1['getPosition']();
let _0xafb1df=JSON['parse'](_0x3173de['getServer']()['getStates']()['getString']('laptop'));
let _0x303605=JSON['parse'](_0x3173de['getServer']()['getStates']()['getString']('camera'));
let _0x16b7d2=mappet['toNBT'](_0x2e14e0['getMorph']())['getList']('BodyParts')['getCompound'](0x0)['getCompound']('Morph')['getCompound']('Stack');
let _0x2d2a04=mappet['createCompound']('{
id:"'+_0x16b7d2['getString']('id')+'",Count:'+_0x16b7d2['getByte']('Count')+'
}
');
let _0x308b14=_0x2e14e0['getEntityData']()['getCompound']('tag');
let _0x510048=_0x1335b1['getMainItem']();
if(_0x2e14e0['getPosition']()['distance'](_0xfabf6a)>0x2)return;
if(!canPickup(_0x1335b1,_0x2d2a04))return;
if(_0x308b14['dumpJSON']()['length']>0x2){
_0x2d2a04['addCompound']('tag');
_0x2d2a04['setCompound']('tag',_0x308b14);
}
if(_0x2d2a04['getString']('id')=='hnt:note'){
_0x3173de['setValue']('index',_0x2e14e0['getEntityData']()['getInt']('index'));
_0x3173de['scheduleScript']('ui_note.js','main',0x0);
return;
}
if(_0x16b7d2['getString']('id')['startsWith']('hnt:camera')&&(_0x510048['getItem']()['getId']()=='hnt:cameralens'||_0x510048['getItem']()['getId']()=='hnt:sdcard')){
if(_0x510048['getItem']()['getId']()=='hnt:cameralens'&&_0x16b7d2['getString']('id')=='hnt:camera'){
_0x2e14e0['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:'+_0x16b7d2['getByte']('Count')+'b,Damage:0s
}
}
}
],Settings:{
Hands:1b
}
,Name:"blockbuster.empty"
}
'));
_0x303605['lensUp']=!![];
_0x3173de['getServer']()['getStates']()['setString']('camera',JSON['stringify'](_0x303605));
_0x1335b1['setMainItem'](mappet['createItem']('minecraft:air'));
}
else if(_0x510048['getItem']()['getId']()=='hnt:sdcard'){
_0x303605['memory']=0xa;
_0x3173de['getServer']()['getStates']()['setString']('camera',JSON['stringify'](_0x303605));
_0x1335b1['setMainItem'](mappet['createItem']('minecraft:air'));
}
_0x1335b1['swingArm']();
return;
}
if(heavyItems['indexOf'](_0x2d2a04['getString']('id'))!=-0x1&&_0x510048['getItem']()['getId']()=='minecraft:air'){
_0x1335b1['setMainItem'](mappet['createItemNBT'](_0x2d2a04));
}
else if(heavyItems['indexOf'](_0x2d2a04['getString']('id'))==-0x1){
_0x1335b1['giveItem'](mappet['createItemNBT'](_0x2d2a04),![],![]);
}
else{
return;
}
_0x1335b1['swingArm']();
_0x2e14e0['remove']();
_0x3173de['getWorld']()['playSound']('mp.sounds:hnt.items.'+_0x16b7d2['getString']('id')['split'](':')[0x1]+'_pickup',_0xfabf6a['x'],_0xfabf6a['y'],_0xfabf6a['z']);
}
function landing(_0x44b3b5){
if(_0x44b3b5['getSubject']()['isPlayer']())return;
let _0x591996=_0x44b3b5['getSubject']();
let _0xb82082=_0x591996['getPosition']();
let _0x5efcfc=_0x44b3b5['getWorld']()['getBlock'](Math['floor'](_0xb82082['x']),Math['floor'](_0xb82082['y'])-0x1,Math['floor'](_0xb82082['z']))['getBlockId']()['split'](':')['pop']();
let _0x121950=mappet['toNBT'](_0x591996['getMorph']())['getList']('BodyParts')['getCompound'](0x0)['getCompound']('Morph')['getCompound']('Stack');
let _0x3f7653='';
let _0x2c29e7=0x1;
switch(_0x5efcfc){
case'stone1':case'stone2':case'rock1':case'rock2':case'rock3':_0x3f7653='minecraft:block.stone.hit';
break;
case'grass':case'yellowgrass':_0x3f7653='mp.sounds:hnt.items.grass_fall';
_0x2c29e7=mappet['random'](0.8,1.5);
break;
case'planks3h':case'planks3':_0x3f7653='minecraft:block.wood.hit';
break;
case'dirt':_0x3f7653='mp.sounds:hnt.items.dirt_fall';
_0x2c29e7=mappet['random'](0.8,1.3);
break;
}
if(_0x3f7653){
_0x44b3b5['getWorld']()['playSound'](_0x3f7653,_0xb82082['x'],_0xb82082['y'],_0xb82082['z'],0x1,_0x2c29e7);
}
_0x44b3b5['getWorld']()['playSound']('mp.sounds:hnt.items.'+_0x121950['getString']('id')['split'](':')[0x1]+'_pickup',_0xb82082['x'],_0xb82082['y'],_0xb82082['z'],0.5,mappet['random'](0x1,0x2));
}
function summonItem(_0x181a78,_0x3375ef,_0x59fa78,_0x599b64,_0x1e859b){
let _0x2fb964=_0x599b64['spawnNpc']('item','default',_0x59fa78['x'],_0x59fa78['y']+0.01,_0x59fa78['z']);
if(_0x1e859b!=null){
if(_0x181a78=='huntclient:shotgun'){
_0x1e859b['setString']('animation','');
_0x1e859b['setBoolean']('cooldown',![]);
}
_0x2fb964['getEntityData']()['setCompound']('tag',_0x1e859b);
}
if(_0x181a78!='huntclient:shotgun'){
_0x2fb964['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:"'+_0x181a78+'",Count:'+_0x3375ef+'b,Damage:0s
}
}
}
],Settings:{
Hands:1b
}
,Name:"blockbuster.empty"
}
'));
}
return _0x2fb964;
}
© 2023 Quttera Ltd. All rights reserved.