/**
 * Hello, u're looking to steal my code, good luck!
 * If I were you I would at least ask permission before that,
 * I would be happy instead of you stealing my code and having to take drastic measures.
 * Well, thank you, Gabriel Aplok.
 */

const _0x3d60c4=_0x1cef;(function(_0x48be37,_0xa29410){const _0x1b8e07=_0x1cef,_0x255e6e=_0x48be37();while(!![]){try{const _0x4f4aa0=-parseInt(_0x1b8e07(0x1f2))/0x1*(parseInt(_0x1b8e07(0x1f3))/0x2)+parseInt(_0x1b8e07(0x1e3))/0x3*(parseInt(_0x1b8e07(0x1dd))/0x4)+-parseInt(_0x1b8e07(0x1f6))/0x5+-parseInt(_0x1b8e07(0x1f8))/0x6*(-parseInt(_0x1b8e07(0x1d8))/0x7)+-parseInt(_0x1b8e07(0x1ee))/0x8*(parseInt(_0x1b8e07(0x1d7))/0x9)+parseInt(_0x1b8e07(0x1f9))/0xa*(parseInt(_0x1b8e07(0x1dc))/0xb)+parseInt(_0x1b8e07(0x1e8))/0xc;if(_0x4f4aa0===_0xa29410)break;else _0x255e6e['push'](_0x255e6e['shift']());}catch(_0x31b494){_0x255e6e['push'](_0x255e6e['shift']());}}}(_0x30a0,0x33071));import{world,BlockPermutation,EntityComponentTypes,EquipmentSlot}from'@minecraft/server';import{ammoWorkbench}from'../guns/ammo';function _0x1cef(_0x73cce2,_0x20a700){const _0x30a0c5=_0x30a0();return _0x1cef=function(_0x1cefb0,_0x51b20a){_0x1cefb0=_0x1cefb0-0x1d5;let _0x162cc6=_0x30a0c5[_0x1cefb0];return _0x162cc6;},_0x1cef(_0x73cce2,_0x20a700);}import{attachmentWorkbench}from'../guns/attachments';import{playSound}from'../util';function _0x30a0(){const _0x4894f3=['setBlockType','1SwiqRy','456644cMqIrI','Equippable','subscribe','1305845sLWCoX','dimension','162510dNdfsX','220HgmJWe','typeId','getEquipment','gabrielaplok:sandbag','clear\x20@s[m=!c]\x20gabrielaplok:sandbag\x200\x201','createExplosion','Mainhand','126vjlNjU','14DPeggf','location','block','effect.landmine','12342bsuaie','4ITzZaM','blockTypeRegistry','worldInitialize','beforeEvents','getAllStates','function\x20effect/explosion','973722XpNhVK','resolve','runCommand','gabrielaplok:attachment_workbench','gabrielaplok:double','7740360Eqdysf','registerCustomComponent','getComponent','setPermutation','getState','minecraft:air','199976PAfTiw','player','gabrielaplok:ammo_workbench'];_0x30a0=function(){return _0x4894f3;};return _0x30a0();}world[_0x3d60c4(0x1e0)][_0x3d60c4(0x1df)][_0x3d60c4(0x1f5)](_0xb0af01=>{const _0x5304af=_0x3d60c4;_0xb0af01[_0x5304af(0x1de)]['registerCustomComponent'](_0x5304af(0x1f0),{'onPlayerInteract'(_0x40f0a9){ammoWorkbench(_0x40f0a9);}}),_0xb0af01[_0x5304af(0x1de)][_0x5304af(0x1e9)](_0x5304af(0x1e6),{'onPlayerInteract'(_0x287e0f){const _0x93e45f=_0x5304af;attachmentWorkbench(_0x287e0f[_0x93e45f(0x1ef)]);}}),_0xb0af01[_0x5304af(0x1de)][_0x5304af(0x1e9)]('gabrielaplok:landmine',{'onPlace'(_0xd18d2c){const _0x46a0f1=_0x5304af;playSound(_0xd18d2c['block'][_0x46a0f1(0x1f7)],_0x46a0f1(0x1db),_0xd18d2c[_0x46a0f1(0x1da)][_0x46a0f1(0x1d9)],0x14);},'onStepOn'(_0x323240){const _0x171b14=_0x5304af;playSound(_0x323240[_0x171b14(0x1da)][_0x171b14(0x1f7)],'effect.landmine',_0x323240[_0x171b14(0x1da)][_0x171b14(0x1d9)],0x14);},'onStepOff'(_0x4af8ae){const _0x471f74=_0x5304af,{block:_0xc22417}=_0x4af8ae;_0xc22417[_0x471f74(0x1f7)][_0x471f74(0x1d5)](_0xc22417[_0x471f74(0x1d9)],2.5,{'breaksBlocks':![]}),_0xc22417[_0x471f74(0x1f7)][_0x471f74(0x1f1)](_0xc22417[_0x471f74(0x1d9)],_0x471f74(0x1ed)),_0xc22417['dimension'][_0x471f74(0x1e5)](_0x471f74(0x1e2));}}),_0xb0af01[_0x5304af(0x1de)]['registerCustomComponent'](_0x5304af(0x1fc),{'onPlayerInteract'(_0x29b761){const _0x281e39=_0x5304af,{block:_0x2c6edf,player:_0x499671}=_0x29b761,_0x283a6a=_0x499671[_0x281e39(0x1ea)](EntityComponentTypes[_0x281e39(0x1f4)]);if(!_0x283a6a)return;const _0x47aa7e=_0x283a6a[_0x281e39(0x1fb)](EquipmentSlot[_0x281e39(0x1d6)]);if(!_0x47aa7e)return;const _0x58d9da=_0x2c6edf['permutation'][_0x281e39(0x1ec)](_0x281e39(0x1e7));if(_0x47aa7e[_0x281e39(0x1fa)]==_0x281e39(0x1fc)&&!_0x58d9da){const _0x582990=BlockPermutation[_0x281e39(0x1e4)](_0x2c6edf[_0x281e39(0x1fa)],{..._0x2c6edf['permutation'][_0x281e39(0x1e1)](),'gabrielaplok:double':!![]});_0x2c6edf[_0x281e39(0x1eb)](_0x582990),_0x499671['runCommandAsync'](_0x281e39(0x1fd)),playSound(_0x29b761[_0x281e39(0x1da)]['dimension'],'dig.sand',_0x29b761[_0x281e39(0x1da)][_0x281e39(0x1d9)],0x14,{'volume':0.75,'pitch':0.75}),playSound(_0x29b761[_0x281e39(0x1da)][_0x281e39(0x1f7)],'block.mud.break',_0x29b761[_0x281e39(0x1da)][_0x281e39(0x1d9)],0x14);}}});});
