/**
 * 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 _0x2d6aaf=_0x1f37;(function(_0x42a009,_0x2e57d5){const _0x19f653=_0x1f37,_0x1f2293=_0x42a009();while(!![]){try{const _0x286aa9=-parseInt(_0x19f653(0x1ca))/0x1*(-parseInt(_0x19f653(0x1c9))/0x2)+-parseInt(_0x19f653(0x1c8))/0x3*(-parseInt(_0x19f653(0x1dd))/0x4)+-parseInt(_0x19f653(0x1d7))/0x5+parseInt(_0x19f653(0x1b8))/0x6+-parseInt(_0x19f653(0x1c4))/0x7*(parseInt(_0x19f653(0x1c6))/0x8)+parseInt(_0x19f653(0x1d5))/0x9+parseInt(_0x19f653(0x1c3))/0xa;if(_0x286aa9===_0x2e57d5)break;else _0x1f2293['push'](_0x1f2293['shift']());}catch(_0x3b0dcf){_0x1f2293['push'](_0x1f2293['shift']());}}}(_0x351b,0x90976));import{world,BlockPermutation,EntityComponentTypes,EquipmentSlot}from'@minecraft/server';function _0x1f37(_0xc0d0c9,_0x168a65){const _0x351ba9=_0x351b();return _0x1f37=function(_0x1f3749,_0x56998d){_0x1f3749=_0x1f3749-0x1b6;let _0x3e9546=_0x351ba9[_0x1f3749];return _0x3e9546;},_0x1f37(_0xc0d0c9,_0x168a65);}import{ammoWorkbench}from'../guns/ammo';function _0x351b(){const _0x54135b=['getComponent','dimension','Equippable','location','dig.sand','180135TUmVYX','subscribe','5519090KTxZNA','blockComponentRegistry','runCommandAsync','minecraft:air','registerCustomComponent','runCommand','4otKEpv','setPermutation','block','6100698YgKJLY','gabrielaplok:ammo_workbench','effect.landmine','getAllStates','block.mud.break','gabrielaplok:attachment_workbench','setBlockType','typeId','player','gabrielaplok:sandbag','worldInitialize','4246950bleTMG','21WTMhIY','getState','210104iTkkWQ','gabrielaplok:landmine','735978pfwGfZ','46WkFPUo','2958NDuLGH','gabrielaplok:double','permutation','Mainhand','clear\x20@s[m=!c]\x20gabrielaplok:sandbag\x200\x201','resolve'];_0x351b=function(){return _0x54135b;};return _0x351b();}import{attachmentWorkbench}from'../guns/attachments';import{playSound}from'../util';world['beforeEvents'][_0x2d6aaf(0x1c2)][_0x2d6aaf(0x1d6)](_0x1ab72a=>{const _0x196d5b=_0x2d6aaf;_0x1ab72a[_0x196d5b(0x1d8)]['registerCustomComponent'](_0x196d5b(0x1b9),{'onPlayerInteract'(_0x1abfb6){ammoWorkbench(_0x1abfb6);}}),_0x1ab72a['blockComponentRegistry']['registerCustomComponent'](_0x196d5b(0x1bd),{'onPlayerInteract'(_0x30c4e2){const _0x3d8796=_0x196d5b;attachmentWorkbench(_0x30c4e2[_0x3d8796(0x1c0)]);}}),_0x1ab72a[_0x196d5b(0x1d8)][_0x196d5b(0x1db)](_0x196d5b(0x1c7),{'onPlace'(_0x21991a){const _0x1ec440=_0x196d5b;playSound(_0x21991a[_0x1ec440(0x1b7)][_0x1ec440(0x1d1)],_0x1ec440(0x1ba),_0x21991a['block'][_0x1ec440(0x1d3)],0x14);},'onStepOn'(_0x58061c){const _0x5f3d93=_0x196d5b,{block:_0x3072d7}=_0x58061c;playSound(_0x3072d7[_0x5f3d93(0x1d1)],_0x5f3d93(0x1ba),_0x3072d7['location'],0x14),_0x3072d7[_0x5f3d93(0x1d1)]['createExplosion'](_0x3072d7['location'],2.5,{'breaksBlocks':![]}),_0x3072d7[_0x5f3d93(0x1d1)][_0x5f3d93(0x1be)](_0x3072d7[_0x5f3d93(0x1d3)],_0x5f3d93(0x1da)),_0x3072d7[_0x5f3d93(0x1d1)][_0x5f3d93(0x1dc)]('function\x20effect/explosion');}}),_0x1ab72a[_0x196d5b(0x1d8)][_0x196d5b(0x1db)](_0x196d5b(0x1c1),{'onPlayerInteract'(_0x3f64ee){const _0x44f291=_0x196d5b,{block:_0x5374cb,player:_0x36431a}=_0x3f64ee,_0x3e72c3=_0x36431a[_0x44f291(0x1d0)](EntityComponentTypes[_0x44f291(0x1d2)]);if(!_0x3e72c3)return;const _0x29fc72=_0x3e72c3['getEquipment'](EquipmentSlot[_0x44f291(0x1cd)]);if(!_0x29fc72)return;const _0x41d080=_0x5374cb[_0x44f291(0x1cc)][_0x44f291(0x1c5)](_0x44f291(0x1cb));if(_0x29fc72['typeId']==_0x44f291(0x1c1)&&!_0x41d080){const _0x74367d=BlockPermutation[_0x44f291(0x1cf)](_0x5374cb[_0x44f291(0x1bf)],{..._0x5374cb[_0x44f291(0x1cc)][_0x44f291(0x1bb)](),'gabrielaplok:double':!![]});_0x5374cb[_0x44f291(0x1b6)](_0x74367d),_0x36431a[_0x44f291(0x1d9)](_0x44f291(0x1ce)),playSound(_0x3f64ee[_0x44f291(0x1b7)]['dimension'],_0x44f291(0x1d4),_0x3f64ee[_0x44f291(0x1b7)][_0x44f291(0x1d3)],0x14,{'volume':0.75,'pitch':0.75}),playSound(_0x3f64ee[_0x44f291(0x1b7)][_0x44f291(0x1d1)],_0x44f291(0x1bc),_0x3f64ee[_0x44f291(0x1b7)]['location'],0x14);}}});});
