const _0x2bff58=_0x4fca;(function(_0x89111b,_0x27b201){const _0x48b508=_0x4fca,_0x4c2d69=_0x89111b();while(!![]){try{const _0x195d6d=-parseInt(_0x48b508(0x123))/0x1+-parseInt(_0x48b508(0x18b))/0x2*(parseInt(_0x48b508(0x145))/0x3)+-parseInt(_0x48b508(0x13a))/0x4+-parseInt(_0x48b508(0x121))/0x5+-parseInt(_0x48b508(0x131))/0x6*(-parseInt(_0x48b508(0x19a))/0x7)+-parseInt(_0x48b508(0x177))/0x8*(-parseInt(_0x48b508(0x124))/0x9)+parseInt(_0x48b508(0x19f))/0xa;if(_0x195d6d===_0x27b201)break;else _0x4c2d69['push'](_0x4c2d69['shift']());}catch(_0x1f3bc0){_0x4c2d69['push'](_0x4c2d69['shift']());}}}(_0x5d0a,0x93c86));function _0x4fca(_0x184d45,_0x35b04e){const _0x5d0aa1=_0x5d0a();return _0x4fca=function(_0x4fca88,_0x29ffd0){_0x4fca88=_0x4fca88-0x11f;let _0x21a465=_0x5d0aa1[_0x4fca88];return _0x21a465;},_0x4fca(_0x184d45,_0x35b04e);}import{world,system,GameMode}from'@minecraft/server';import _0x19f407 from'./config';class DynamicDB{constructor(_0x28da4f,_0xdba1b3){const _0x2ca123=_0x4fca;this[_0x2ca123(0x1a5)]=_0x28da4f,this[_0x2ca123(0x165)]=_0xdba1b3;let _0x359b17=this[_0x2ca123(0x165)][_0x2ca123(0x197)](_0x2ca123(0x143)+_0x28da4f+'_length');if(_0x359b17===undefined)this[_0x2ca123(0x17d)]={};else{let _0x5615ef='';for(let _0x3f2128=0x0;_0x3f2128<_0x359b17;_0x3f2128++){_0x5615ef+=this[_0x2ca123(0x165)][_0x2ca123(0x197)](_0x2ca123(0x143)+_0x28da4f+'_'+_0x3f2128);}this[_0x2ca123(0x17d)]=JSON['parse'](_0x5615ef);}}static[_0x2bff58(0x152)](_0x48009e){const _0x54c680=_0x2bff58;let _0x262c57=this['_provider'][_0x54c680(0x197)](_0x54c680(0x143)+_0x48009e+'_length');if(_0x262c57===undefined)return![];else{for(let _0x1f06a1=0x0;_0x1f06a1<_0x262c57;_0x1f06a1++){this[_0x54c680(0x165)][_0x54c680(0x11f)]('dynamicdb:'+_0x48009e+'_'+_0x1f06a1,undefined);}return this[_0x54c680(0x165)]['setDynamicProperty'](_0x54c680(0x143)+_0x48009e+_0x54c680(0x185),undefined),!![];}}[_0x2bff58(0x160)](){const _0x1eff8d=_0x2bff58;this['_data']=undefined;let _0x20b635=this[_0x1eff8d(0x165)][_0x1eff8d(0x197)](_0x1eff8d(0x143)+this[_0x1eff8d(0x1a5)]+_0x1eff8d(0x185));for(let _0x49a2b1=0x0;_0x49a2b1<_0x20b635;_0x49a2b1++){this[_0x1eff8d(0x165)][_0x1eff8d(0x11f)](_0x1eff8d(0x143)+this[_0x1eff8d(0x1a5)]+'_'+_0x49a2b1,undefined);}this[_0x1eff8d(0x165)][_0x1eff8d(0x11f)](_0x1eff8d(0x143)+this[_0x1eff8d(0x1a5)]+_0x1eff8d(0x185),undefined);}static['exists'](_0x25fe88){const _0x474c48=_0x2bff58;let _0x2da984=this[_0x474c48(0x165)][_0x474c48(0x197)](_0x474c48(0x143)+_0x25fe88+'_length');return _0x2da984===undefined?![]:!![];}[_0x2bff58(0x12c)](){const _0x5e9d4b=_0x2bff58;let _0x4abb0e=Date['now']();const _0x11b55f=this[_0x5e9d4b(0x165)][_0x5e9d4b(0x197)]('dynamicdb:'+this[_0x5e9d4b(0x1a5)]+'_length');for(let _0x1dee9f=0x0;_0x1dee9f<_0x11b55f;_0x1dee9f++){this[_0x5e9d4b(0x165)][_0x5e9d4b(0x11f)]('dynamicdb:'+this[_0x5e9d4b(0x1a5)]+'_'+_0x1dee9f,undefined);}let _0x57f74a=this['_data'];if(_0x57f74a===undefined)_0x57f74a={};let _0x39a4fd=JSON[_0x5e9d4b(0x17e)](_0x57f74a),_0x12a193=[];for(let _0x2eeee1=0x0;_0x2eeee1<_0x39a4fd[_0x5e9d4b(0x1a1)];_0x2eeee1+=0x7fff){_0x12a193[_0x5e9d4b(0x133)](_0x39a4fd[_0x5e9d4b(0x138)](_0x2eeee1,_0x2eeee1+0x7fff));}return _0x12a193[_0x5e9d4b(0x156)]((_0x28e81d,_0x838f9)=>{const _0x19a38b=_0x5e9d4b;this[_0x19a38b(0x165)][_0x19a38b(0x11f)](_0x19a38b(0x143)+this[_0x19a38b(0x1a5)]+'_'+_0x838f9,_0x28e81d);}),this[_0x5e9d4b(0x165)]['setDynamicProperty'](_0x5e9d4b(0x143)+this[_0x5e9d4b(0x1a5)]+_0x5e9d4b(0x185),_0x12a193[_0x5e9d4b(0x1a1)]),Promise[_0x5e9d4b(0x137)](Date[_0x5e9d4b(0x16b)]()-_0x4abb0e);}[_0x2bff58(0x157)](){const _0x3a3185=_0x2bff58;if(this[_0x3a3185(0x17d)]===undefined)this[_0x3a3185(0x17d)]={};return Object[_0x3a3185(0x172)](this[_0x3a3185(0x17d)]);}[_0x2bff58(0x196)](_0x3b4880){const _0x41c7f9=_0x2bff58;if(this[_0x41c7f9(0x17d)]===undefined)this[_0x41c7f9(0x17d)]={};return this[_0x41c7f9(0x17d)][_0x3b4880];}[_0x2bff58(0x17f)](_0x2e8b31,_0x2f3d09){const _0x40181a=_0x2bff58;if(this[_0x40181a(0x17d)]===undefined)this[_0x40181a(0x17d)]={};this[_0x40181a(0x17d)][_0x2e8b31]=_0x2f3d09;}['delete'](_0x2fe72b){const _0x16783c=_0x2bff58;if(this['_data']===undefined)this[_0x16783c(0x17d)]={};this[_0x16783c(0x17d)][_0x2fe72b]=undefined;}[_0x2bff58(0x161)](){const _0x2d95c3=_0x2bff58;let _0x3d708b=this[_0x2d95c3(0x17d)];if(_0x3d708b===undefined)_0x3d708b={};return JSON['stringify'](_0x3d708b);}}const overworld=world[_0x2bff58(0x154)](_0x2bff58(0x132)),db=new DynamicDB('MysticDB',world);!db[_0x2bff58(0x196)](_0x2bff58(0x18c))&&(db['set']('MysticDB',{'time':_0x19f407[_0x2bff58(0x125)]['time']+_0x19f407[_0x2bff58(0x125)][_0x2bff58(0x158)]+_0x19f407[_0x2bff58(0x125)][_0x2bff58(0x149)]}),db[_0x2bff58(0x12c)]());system['runInterval'](async()=>{const _0x3750cf=_0x2bff58,_0x28d3f0=world[_0x3750cf(0x14a)]()['length'];if(db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x125)]>_0x19f407[_0x3750cf(0x125)]['open_time']+_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x149)]){db['get']('MysticDB')[_0x3750cf(0x125)]--;if(db[_0x3750cf(0x196)](_0x3750cf(0x18c))['time']==_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x158)]+_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x149)]+0x384){if(_0x28d3f0<_0x19f407[_0x3750cf(0x18a)]){db[_0x3750cf(0x196)]('MysticDB')[_0x3750cf(0x125)]+=0x12c,world['sendMessage'](_0x19f407[_0x3750cf(0x17b)][_0x3750cf(0x186)][_0x3750cf(0x15b)][_0x3750cf(0x194)](_0x3750cf(0x169),_0x19f407[_0x3750cf(0x1a7)])[_0x3750cf(0x194)]('$ONLINE',_0x28d3f0)[_0x3750cf(0x194)](_0x3750cf(0x184),_0x19f407[_0x3750cf(0x18a)]));return;}world['sendMessage'](_0x19f407[_0x3750cf(0x17b)][_0x3750cf(0x186)]['time_left'][_0x3750cf(0x194)]('$PREFIX',_0x19f407['prefix'])[_0x3750cf(0x194)](_0x3750cf(0x122),_0x3750cf(0x189)));}else{if(db[_0x3750cf(0x196)](_0x3750cf(0x18c))['time']==_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x158)]+_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x149)]+0x258){if(_0x28d3f0<_0x19f407[_0x3750cf(0x18a)]){db[_0x3750cf(0x196)](_0x3750cf(0x18c))['time']+=0x258,world[_0x3750cf(0x178)](_0x19f407[_0x3750cf(0x17b)][_0x3750cf(0x186)]['no_online']['replaceAll'](_0x3750cf(0x169),_0x19f407['prefix'])[_0x3750cf(0x194)](_0x3750cf(0x155),_0x28d3f0)[_0x3750cf(0x194)]('$MIN_ONLINE',_0x19f407[_0x3750cf(0x18a)]));return;}world['sendMessage'](_0x19f407['texts'][_0x3750cf(0x186)][_0x3750cf(0x144)][_0x3750cf(0x194)](_0x3750cf(0x169),_0x19f407[_0x3750cf(0x1a7)])[_0x3750cf(0x194)](_0x3750cf(0x122),_0x3750cf(0x129)));}else{if(db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x125)]==_0x19f407[_0x3750cf(0x125)]['open_time']+_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x149)]+0x12c){if(_0x28d3f0<_0x19f407['online']){db['get'](_0x3750cf(0x18c))['time']+=0x384,world[_0x3750cf(0x178)](_0x19f407[_0x3750cf(0x17b)][_0x3750cf(0x186)][_0x3750cf(0x15b)][_0x3750cf(0x194)]('$PREFIX',_0x19f407[_0x3750cf(0x1a7)])[_0x3750cf(0x194)](_0x3750cf(0x155),_0x28d3f0)[_0x3750cf(0x194)](_0x3750cf(0x184),_0x19f407[_0x3750cf(0x18a)]));return;}world[_0x3750cf(0x178)](_0x19f407['texts'][_0x3750cf(0x186)][_0x3750cf(0x144)][_0x3750cf(0x194)](_0x3750cf(0x169),_0x19f407['prefix'])[_0x3750cf(0x194)](_0x3750cf(0x122),_0x3750cf(0x1a3)));}}}}else{if(db['get']('MysticDB')[_0x3750cf(0x125)]==_0x19f407[_0x3750cf(0x125)]['open_time']+_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x149)]){if(world[_0x3750cf(0x14a)]()[_0x3750cf(0x1a1)]<_0x19f407[_0x3750cf(0x18a)]){db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x125)]+=0x4b0,world[_0x3750cf(0x178)](_0x19f407[_0x3750cf(0x17b)][_0x3750cf(0x186)]['no_online'][_0x3750cf(0x194)](_0x3750cf(0x169),_0x19f407['prefix'])[_0x3750cf(0x194)](_0x3750cf(0x155),world[_0x3750cf(0x14a)]()[_0x3750cf(0x1a1)])[_0x3750cf(0x194)]('$MIN_ONLINE',_0x19f407['online'])),db[_0x3750cf(0x196)](_0x3750cf(0x18c))['time']+_0x19f407['time'][_0x3750cf(0x149)];return;}db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x125)]--;const _0x509b51=getRandomInt(_0x19f407[_0x3750cf(0x13c)]['x'],_0x19f407['spawn_radius']['x1']),_0xa3da5c=getRandomInt(_0x19f407['spawn_radius']['z'],_0x19f407[_0x3750cf(0x13c)]['z1']),_0x1e4179=getRandomInt(0x0,_0x19f407['rarities'][_0x3750cf(0x1a1)]-0x1);db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x173)]=_0x1e4179,db[_0x3750cf(0x196)]('MysticDB')[_0x3750cf(0x164)]=![],db['get'](_0x3750cf(0x18c))['coordinates']={'x':_0x509b51,'z':_0xa3da5c},db['get']('MysticDB')[_0x3750cf(0x15d)]={'x1':_0x509b51-_0x19f407[_0x3750cf(0x198)],'x2':_0x509b51+_0x19f407[_0x3750cf(0x198)],'z1':_0xa3da5c-_0x19f407[_0x3750cf(0x198)],'z2':_0xa3da5c+_0x19f407[_0x3750cf(0x198)]},overworld[_0x3750cf(0x19e)]('structure load SpawnMystic '+_0x509b51+' 318 '+_0xa3da5c),world[_0x3750cf(0x178)](_0x19f407[_0x3750cf(0x17b)]['messages'][_0x3750cf(0x180)][_0x3750cf(0x194)](_0x3750cf(0x169),_0x19f407[_0x3750cf(0x1a7)])[_0x3750cf(0x194)]('$RARITY',_0x19f407[_0x3750cf(0x182)][_0x1e4179][_0x3750cf(0x193)])[_0x3750cf(0x194)]('$X',_0x509b51)['replaceAll']('$Z',_0xa3da5c));}else{if(db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x125)]>_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x149)]-0x1&&db[_0x3750cf(0x196)](_0x3750cf(0x18c))['activated']==!![]){if(_0x28d3f0<_0x19f407[_0x3750cf(0x18a)]){db[_0x3750cf(0x196)](_0x3750cf(0x18c))['time']+=0x4b0,world['sendMessage'](_0x19f407[_0x3750cf(0x17b)][_0x3750cf(0x186)][_0x3750cf(0x15b)]['replaceAll'](_0x3750cf(0x169),_0x19f407[_0x3750cf(0x1a7)])['replaceAll'](_0x3750cf(0x155),_0x28d3f0)[_0x3750cf(0x194)](_0x3750cf(0x184),_0x19f407[_0x3750cf(0x18a)]));return;}db[_0x3750cf(0x196)](_0x3750cf(0x18c))['time']--;const {x:_0x4c0e11,y:_0x590ac2,z:_0x1f435d}=db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x153)];if(db[_0x3750cf(0x196)](_0x3750cf(0x18c))['time']==_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x149)]){db[_0x3750cf(0x196)]('MysticDB')[_0x3750cf(0x125)]--,overworld[_0x3750cf(0x19e)](_0x3750cf(0x13f)+_0x19f407[_0x3750cf(0x182)][db[_0x3750cf(0x196)](_0x3750cf(0x18c))['rarity']][_0x3750cf(0x19d)]+(Math[_0x3750cf(0x150)](Math['random']()*_0x19f407[_0x3750cf(0x162)])+0x1)+' '+_0x4c0e11+' '+_0x590ac2+' '+_0x1f435d);for(const _0xf109ca of overworld[_0x3750cf(0x16a)]({'type':'mystic:text'})){_0xf109ca['nameTag']=_0x19f407['texts'][_0x3750cf(0x17a)]['on_open'][_0x3750cf(0x194)](_0x3750cf(0x122),db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x125)])[_0x3750cf(0x194)](_0x3750cf(0x179),_0x19f407[_0x3750cf(0x182)][db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x173)]][_0x3750cf(0x193)]),_0xf109ca[_0x3750cf(0x12b)]({'x':_0x4c0e11+0.5,'y':_0x590ac2+0x1,'z':_0x1f435d+0.5});}}else for(const _0x391a54 of overworld['getEntities']({'type':'mystic:text'})){_0x391a54[_0x3750cf(0x14b)]=_0x19f407[_0x3750cf(0x17b)][_0x3750cf(0x17a)][_0x3750cf(0x180)][_0x3750cf(0x194)](_0x3750cf(0x122),db[_0x3750cf(0x196)]('MysticDB')[_0x3750cf(0x125)]-_0x19f407[_0x3750cf(0x125)]['delete_time'])['replaceAll'](_0x3750cf(0x179),_0x19f407[_0x3750cf(0x182)][db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x173)]]['display']);const {x:_0x35b2fe,y:_0x3cf70b,z:_0x44c07c}=db[_0x3750cf(0x196)](_0x3750cf(0x18c))['coordinates'];_0x391a54[_0x3750cf(0x12b)]({'x':_0x35b2fe+0.5,'y':_0x3cf70b+0x1,'z':_0x44c07c+0.5});}}else{if(db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x125)]>0x0&&db['get'](_0x3750cf(0x18c))[_0x3750cf(0x164)]==!![]){db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x125)]--;for(const _0x16601d of overworld[_0x3750cf(0x16a)]({'type':_0x3750cf(0x166)})){_0x16601d[_0x3750cf(0x14b)]=_0x19f407[_0x3750cf(0x17b)][_0x3750cf(0x17a)][_0x3750cf(0x183)][_0x3750cf(0x194)]('$TIME',db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x125)])['replaceAll'](_0x3750cf(0x179),_0x19f407[_0x3750cf(0x182)][db[_0x3750cf(0x196)](_0x3750cf(0x18c))['rarity']][_0x3750cf(0x193)]);const {x:_0x157270,y:_0x3eb2f1,z:_0x174b72}=db[_0x3750cf(0x196)](_0x3750cf(0x18c))[_0x3750cf(0x153)];_0x16601d[_0x3750cf(0x12b)]({'x':_0x157270+0.5,'y':_0x3eb2f1+0x1,'z':_0x174b72+0.5});}}else{if(db[_0x3750cf(0x196)](_0x3750cf(0x18c))['time']<0x1&&db['get'](_0x3750cf(0x18c))['activated']==!![]){for(const _0x39e0ae of overworld[_0x3750cf(0x16a)]({'type':_0x3750cf(0x166)})){_0x39e0ae[_0x3750cf(0x19e)](_0x3750cf(0x15c));}const {x:_0x15fbe0,y:_0x574380,z:_0x19c280}=db[_0x3750cf(0x196)](_0x3750cf(0x18c))['coordinates'];overworld[_0x3750cf(0x19e)](_0x3750cf(0x1a2)+_0x15fbe0+' '+_0x574380+' '+_0x19c280+_0x3750cf(0x15f)),db['get'](_0x3750cf(0x18c))['activated']=![],db['get'](_0x3750cf(0x18c))[_0x3750cf(0x125)]=_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x125)]+_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x158)]+_0x19f407[_0x3750cf(0x125)][_0x3750cf(0x149)],overworld['runCommandAsync']('tickingarea remove MysticLoader');}}}}}},0x14),system[_0x2bff58(0x146)](()=>db[_0x2bff58(0x12c)](),0x5),system[_0x2bff58(0x146)](async()=>{const _0x499c1c=_0x2bff58;for(const _0x1a31fb of overworld[_0x499c1c(0x16a)]({'type':_0x499c1c(0x181),'tags':[_0x499c1c(0x175)]})){const {x:_0x1035fe,y:_0x361857,z:_0xbe1fc2}=_0x1a31fb['location'];if([_0x499c1c(0x1a4),_0x499c1c(0x14c),_0x499c1c(0x16c),_0x499c1c(0x195),_0x499c1c(0x18d),_0x499c1c(0x13e),'pitcher_plant',_0x499c1c(0x134),_0x499c1c(0x151),_0x499c1c(0x140),_0x499c1c(0x15e)]['includes'](overworld[_0x499c1c(0x19b)]({'x':_0x1035fe,'y':_0x361857-0x2,'z':_0xbe1fc2})['typeId']['replace'](_0x499c1c(0x18e),'')))_0x1a31fb[_0x499c1c(0x12b)]({'x':_0x1035fe,'y':_0x361857-0x3,'z':_0xbe1fc2});else{if([_0x499c1c(0x1a4),_0x499c1c(0x14c),_0x499c1c(0x16c),'yellow_flower',_0x499c1c(0x18d),_0x499c1c(0x13e),_0x499c1c(0x12e),'pink_petals','wither_rose',_0x499c1c(0x140),_0x499c1c(0x15e)][_0x499c1c(0x19c)](overworld[_0x499c1c(0x19b)]({'x':_0x1035fe,'y':_0x361857,'z':_0xbe1fc2})[_0x499c1c(0x13d)]['replace']('minecraft:','')))_0x1a31fb[_0x499c1c(0x12b)]({'x':_0x1035fe,'y':_0x361857-0x1,'z':_0xbe1fc2});else{_0x1a31fb[_0x499c1c(0x190)](),db[_0x499c1c(0x196)](_0x499c1c(0x18c))[_0x499c1c(0x153)]['y']=_0x361857+0x1,overworld['runCommandAsync']('tickingarea add circle '+_0x1035fe+' '+(_0x361857+0x1)+' '+_0xbe1fc2+' 4 "MysticLoader" true'),overworld['runCommandAsync'](_0x499c1c(0x1a2)+_0x1035fe+' '+(_0x361857+0x1)+' '+_0xbe1fc2+' '+_0x19f407[_0x499c1c(0x128)]);const _0x92b847=await overworld[_0x499c1c(0x171)](_0x499c1c(0x166),{'x':_0x1035fe,'y':_0x361857+0x2,'z':_0xbe1fc2});_0x92b847['nameTag']=_0x19f407[_0x499c1c(0x17b)][_0x499c1c(0x17a)]['no_activated'];}}}}),world[_0x2bff58(0x126)][_0x2bff58(0x163)][_0x2bff58(0x15a)](_0x3bafd7=>{const _0x47eb06=_0x2bff58,{player:_0x306271,block:_0x4cb5a9}=_0x3bafd7;if(_0x306271['dimension']['id']!=='minecraft:overworld')return;if(_0x4cb5a9[_0x47eb06(0x13d)]!=='minecraft:chest')return;if(db[_0x47eb06(0x196)](_0x47eb06(0x18c))[_0x47eb06(0x125)]>_0x19f407['time'][_0x47eb06(0x158)]+_0x19f407['time'][_0x47eb06(0x149)])return;const {x:_0x285137,z:_0x3bc1f8}=_0x4cb5a9[_0x47eb06(0x14e)],{x:_0x1c0339,y:_0x4c27bd,z:_0x51486c}=db[_0x47eb06(0x196)](_0x47eb06(0x18c))[_0x47eb06(0x153)];if(_0x285137==_0x1c0339&&_0x3bc1f8==_0x51486c){if(db['get'](_0x47eb06(0x18c))[_0x47eb06(0x164)]==![])_0x3bafd7[_0x47eb06(0x199)]=!![],db[_0x47eb06(0x196)](_0x47eb06(0x18c))[_0x47eb06(0x164)]=!![],_0x306271[_0x47eb06(0x19e)](_0x47eb06(0x13b)+_0x19f407[_0x47eb06(0x17b)]['messages'][_0x47eb06(0x136)]+'"}]}');else db[_0x47eb06(0x196)]('MysticDB')['time']>_0x19f407[_0x47eb06(0x125)][_0x47eb06(0x149)]&&(_0x3bafd7[_0x47eb06(0x199)]=!![],_0x306271[_0x47eb06(0x19e)](_0x47eb06(0x13b)+_0x19f407[_0x47eb06(0x17b)]['messages'][_0x47eb06(0x12a)][_0x47eb06(0x194)]('"','''')+_0x47eb06(0x127)));}}),world['beforeEvents'][_0x2bff58(0x141)][_0x2bff58(0x15a)](_0x415fda=>{const _0xc3762f=_0x2bff58,{player:_0x15efa8,block:_0x20b36f}=_0x415fda,{x:_0x595e2a,z:_0x3a8a8c}=_0x20b36f[_0xc3762f(0x14e)];if(_0x15efa8['dimension']['id']!==_0xc3762f(0x188))return;if(_0x15efa8[_0xc3762f(0x142)](_0x19f407['admin_tag'])&&getGamemode(_0x15efa8)==_0xc3762f(0x167))return;if(db[_0xc3762f(0x196)]('MysticDB')[_0xc3762f(0x125)]>_0x19f407[_0xc3762f(0x125)]['open_time']+_0x19f407[_0xc3762f(0x125)]['delete_time'])return;const {x1:_0x4da49d,x2:_0xddac2a,z1:_0x26f361,z2:_0x1b3458}=db[_0xc3762f(0x196)](_0xc3762f(0x18c))[_0xc3762f(0x15d)];_0x4da49d<=_0x595e2a&&_0xddac2a>=_0x595e2a&&_0x26f361<=_0x3a8a8c&&_0x1b3458>=_0x3a8a8c&&(_0x415fda['cancel']=!![],_0x15efa8[_0xc3762f(0x178)](_0x19f407[_0xc3762f(0x17b)][_0xc3762f(0x186)][_0xc3762f(0x1a0)]));}),world[_0x2bff58(0x126)][_0x2bff58(0x147)][_0x2bff58(0x15a)](_0x1f7dc0=>{const _0x1582d7=_0x2bff58,{player:_0x223f7e,block:_0x54e1cf}=_0x1f7dc0,{x:_0x52dacb,z:_0x47e3ff}=_0x54e1cf[_0x1582d7(0x14e)];if(_0x223f7e[_0x1582d7(0x174)]['id']!==_0x1582d7(0x188))return;if(_0x223f7e['hasTag'](_0x19f407[_0x1582d7(0x16e)])&&getGamemode(_0x223f7e)==_0x1582d7(0x167))return;if(db[_0x1582d7(0x196)](_0x1582d7(0x18c))['time']>_0x19f407[_0x1582d7(0x125)]['open_time']+_0x19f407[_0x1582d7(0x125)]['delete_time'])return;const {x1:_0x18baf2,x2:_0x105f1e,z1:_0x37e6d0,z2:_0x1d5c1e}=db['get'](_0x1582d7(0x18c))[_0x1582d7(0x15d)];_0x18baf2<=_0x52dacb&&_0x105f1e>=_0x52dacb&&_0x37e6d0<=_0x47e3ff&&_0x1d5c1e>=_0x47e3ff&&(_0x1f7dc0[_0x1582d7(0x199)]=!![],_0x223f7e[_0x1582d7(0x178)](_0x19f407[_0x1582d7(0x17b)][_0x1582d7(0x186)][_0x1582d7(0x1a0)]));});function getGamemode(_0x1f3aca){const _0x28a394=_0x2bff58;return Object[_0x28a394(0x159)](GameMode)[_0x28a394(0x12d)](_0x43b32e=>[...world[_0x28a394(0x135)]({'name':_0x1f3aca[_0x28a394(0x187)],'gameMode':_0x43b32e})][_0x28a394(0x1a1)]);}function _0x5d0a(){const _0x36a37c=['afterEvents','1402216BFbnku','titleraw @s actionbar {"rawtext":[{"text":"','spawn_radius','typeId','double_plant','structure load ','torchflower','playerBreakBlock','hasTag','dynamicdb:','time_left','543tPxDkN','runInterval','playerPlaceBlock','tickingarea remove MysticLoader','delete_time','getAllPlayers','nameTag','snow_layer','not_enough_rights','location','scriptEventReceive','floor','wither_rose','delete','coordinates','getDimension','$ONLINE','forEach','keySet','open_time','values','subscribe','no_online','event entity @s text:despawn','private','bamboo',' air','clear','toString','loots','playerInteractWithBlock','activated','_provider','mystic:text','creative','Мистический сундук ещё не появился!','$PREFIX','getEntities','now','tallgrass','mystic:despawn','admin_tag','mystic:mystic','Мистический сундук уже появился!','spawnEntity','keys','rarity','dimension','SpawnMystic','command','1768HhLWuX','sendMessage','$RARITY','floating_texts','texts','random','_data','stringify','set','on_spawn','armor_stand','rarities','on_open','$MIN_ONLINE','_length','messages','name','minecraft:overworld','15 минут','online','8726CAgPoC','MysticDB','red_flower','minecraft:','startsWith','remove','ceil','dont_spawned','display','replaceAll','yellow_flower','get','getDynamicProperty','region','cancel','21CpYqac','getBlock','includes','structure','runCommandAsync','26596160RKGXMt','cancel_event','length','setblock ','5 минут','air','_id','spawned','prefix','setDynamicProperty','mystic','5618805hKYyCP','$TIME','704844EGSvdN','29250YGCjeH','time','beforeEvents','"}]}','chest_typeId','10 минут','on_close','teleport','save','find','pitcher_plant','mystic:','mystic:open','392628oxBYmp','overworld','push','pink_petals','getPlayers','activate','resolve','substring'];_0x5d0a=function(){return _0x36a37c;};return _0x5d0a();}function getRandomInt(_0x58c442,_0x2aa642){const _0x50e20e=_0x2bff58;return _0x58c442=Math[_0x50e20e(0x191)](_0x58c442),_0x2aa642=Math[_0x50e20e(0x150)](_0x2aa642),Math['floor'](Math[_0x50e20e(0x17c)]()*(_0x2aa642-_0x58c442+0x1))+_0x58c442;}system[_0x2bff58(0x139)][_0x2bff58(0x14f)][_0x2bff58(0x15a)](_0xcac115=>{const _0x207ce2=_0x2bff58,{id:_0x3441db,sourceEntity:_0x553d80}=_0xcac115;if(!_0x3441db[_0x207ce2(0x18f)](_0x207ce2(0x12f)))return;if(_0x3441db==_0x207ce2(0x16f)){if(db[_0x207ce2(0x196)]('MysticDB')['time']+0x1>_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x149)]+_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x158)])_0x553d80['sendMessage'](_0x19f407[_0x207ce2(0x17b)][_0x207ce2(0x186)][_0x207ce2(0x176)][_0x207ce2(0x192)]['replaceAll'](_0x207ce2(0x169),_0x19f407[_0x207ce2(0x1a7)])[_0x207ce2(0x194)](_0x207ce2(0x122),db[_0x207ce2(0x196)](_0x207ce2(0x18c))[_0x207ce2(0x125)]-_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x149)]-_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x158)]));else{const {x:_0x3c6365,z:_0x54726c}=db[_0x207ce2(0x196)](_0x207ce2(0x18c))[_0x207ce2(0x153)];_0x553d80[_0x207ce2(0x178)](_0x19f407[_0x207ce2(0x17b)]['messages'][_0x207ce2(0x176)][_0x207ce2(0x1a6)][_0x207ce2(0x194)](_0x207ce2(0x169),_0x19f407['prefix'])[_0x207ce2(0x194)]('$X',_0x3c6365)['replaceAll']('$Z',_0x54726c));}}else{if(_0x3441db=='mystic:spawn'){if(!_0x553d80[_0x207ce2(0x142)](_0x19f407[_0x207ce2(0x16e)]))return _0x553d80['sendMessage'](_0x19f407['texts'][_0x207ce2(0x186)]['command'][_0x207ce2(0x14d)]);if(db['get']('MysticDB')['time']<=_0x19f407[_0x207ce2(0x125)]['delete_time']+_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x158)])return _0x553d80[_0x207ce2(0x178)](_0x207ce2(0x170));db[_0x207ce2(0x196)](_0x207ce2(0x18c))[_0x207ce2(0x125)]=_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x149)]+_0x19f407['time'][_0x207ce2(0x158)]-0x1;const _0x351e7f=getRandomInt(_0x19f407['spawn_radius']['x'],_0x19f407[_0x207ce2(0x13c)]['x1']),_0x2eea75=getRandomInt(_0x19f407[_0x207ce2(0x13c)]['z'],_0x19f407[_0x207ce2(0x13c)]['z1']),_0xbbefa8=getRandomInt(0x0,_0x19f407[_0x207ce2(0x182)][_0x207ce2(0x1a1)]-0x1);db[_0x207ce2(0x196)](_0x207ce2(0x18c))[_0x207ce2(0x173)]=_0xbbefa8,db['get'](_0x207ce2(0x18c))[_0x207ce2(0x164)]=![],db[_0x207ce2(0x196)](_0x207ce2(0x18c))[_0x207ce2(0x153)]={'x':_0x351e7f,'z':_0x2eea75},db['get'](_0x207ce2(0x18c))[_0x207ce2(0x15d)]={'x1':_0x351e7f-_0x19f407['region'],'x2':_0x351e7f+_0x19f407[_0x207ce2(0x198)],'z1':_0x2eea75-_0x19f407[_0x207ce2(0x198)],'z2':_0x2eea75+_0x19f407[_0x207ce2(0x198)]},overworld[_0x207ce2(0x19e)]('structure load SpawnMystic '+_0x351e7f+' 318 '+_0x2eea75),world[_0x207ce2(0x178)](_0x19f407[_0x207ce2(0x17b)]['messages'][_0x207ce2(0x180)][_0x207ce2(0x194)](_0x207ce2(0x169),_0x19f407[_0x207ce2(0x1a7)])['replaceAll']('$RARITY',_0x19f407['rarities'][_0xbbefa8][_0x207ce2(0x193)])['replaceAll']('$X',_0x351e7f)[_0x207ce2(0x194)]('$Z',_0x2eea75));}else{if(_0x3441db==_0x207ce2(0x130)){if(!_0x553d80[_0x207ce2(0x142)](_0x19f407[_0x207ce2(0x16e)]))return _0x553d80[_0x207ce2(0x178)](_0x19f407[_0x207ce2(0x17b)][_0x207ce2(0x186)][_0x207ce2(0x176)][_0x207ce2(0x14d)]);if(db[_0x207ce2(0x196)](_0x207ce2(0x18c))[_0x207ce2(0x125)]>=_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x149)]+_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x158)])return _0x553d80['sendMessage'](_0x207ce2(0x168));if(db['get']('MysticDB')[_0x207ce2(0x125)]<=_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x149)])return _0x553d80['sendMessage']('Мистический сундук уже открылся!');db['get']('MysticDB')[_0x207ce2(0x164)]=!![],db[_0x207ce2(0x196)](_0x207ce2(0x18c))['time']=_0x19f407[_0x207ce2(0x125)]['delete_time']-0x1;const {x:_0x253b3c,y:_0x2526c3,z:_0xacebac}=db[_0x207ce2(0x196)]('MysticDB')[_0x207ce2(0x153)];overworld[_0x207ce2(0x19e)](_0x207ce2(0x13f)+_0x19f407['rarities'][db[_0x207ce2(0x196)](_0x207ce2(0x18c))['rarity']]['structure']+(Math[_0x207ce2(0x150)](Math['random']()*_0x19f407[_0x207ce2(0x162)])+0x1)+' '+_0x253b3c+' '+_0x2526c3+' '+_0xacebac);for(const _0x5228a7 of overworld['getEntities']({'type':_0x207ce2(0x166)})){_0x5228a7['nameTag']=_0x19f407[_0x207ce2(0x17b)][_0x207ce2(0x17a)][_0x207ce2(0x183)][_0x207ce2(0x194)](_0x207ce2(0x122),db[_0x207ce2(0x196)](_0x207ce2(0x18c))[_0x207ce2(0x125)])[_0x207ce2(0x194)](_0x207ce2(0x179),_0x19f407[_0x207ce2(0x182)][db[_0x207ce2(0x196)]('MysticDB')['rarity']][_0x207ce2(0x193)]),_0x5228a7[_0x207ce2(0x12b)]({'x':_0x253b3c+0.5,'y':_0x2526c3+0x1,'z':_0xacebac+0.5});}}else{if(_0x3441db==_0x207ce2(0x16d)){if(!_0x553d80['hasTag'](_0x19f407[_0x207ce2(0x16e)]))return _0x553d80[_0x207ce2(0x178)](_0x19f407[_0x207ce2(0x17b)][_0x207ce2(0x186)][_0x207ce2(0x176)][_0x207ce2(0x14d)]);if(db[_0x207ce2(0x196)](_0x207ce2(0x18c))[_0x207ce2(0x125)]>=_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x149)]+_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x158)])return _0x553d80[_0x207ce2(0x178)](_0x207ce2(0x168));for(const _0x94d9d3 of overworld[_0x207ce2(0x16a)]({'type':'mystic:text'})){_0x94d9d3[_0x207ce2(0x19e)]('event entity @s text:despawn');}const {x:_0x172bad,y:_0x5f09f0,z:_0x2d17b7}=db[_0x207ce2(0x196)]('MysticDB')[_0x207ce2(0x153)];overworld['runCommandAsync'](_0x207ce2(0x1a2)+_0x172bad+' '+_0x5f09f0+' '+_0x2d17b7+_0x207ce2(0x15f)),db[_0x207ce2(0x196)]('MysticDB')['activated']=![],db[_0x207ce2(0x196)](_0x207ce2(0x18c))['time']=_0x19f407['time'][_0x207ce2(0x125)]+_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x158)]+_0x19f407[_0x207ce2(0x125)][_0x207ce2(0x149)],overworld[_0x207ce2(0x19e)](_0x207ce2(0x148));}}}}},{'namespaces':[_0x2bff58(0x120)]});
world.beforeEvents.chatSend.subscribe((data) => {
const { message, sender: player } = data;
if (message === "-mystic spawn") {
if (player.hasTag("admin")) {
data.cancel = true;
player.runCommandAsync("scriptevent mystic:spawn");
} else {
player.runCommandAsync(`tellraw @s {"rawtext":[{"text":"§cНедостаточно прав для использования этой команды."}]}`);
}
} else if (message === "-mystic open") {
if (player.hasTag("admin")) {
data.cancel = true;
player.runCommandAsync("scriptevent mystic:open");
} else {
player.runCommandAsync(`tellraw @s {"rawtext":[{"text":"§cНедостаточно прав для использования этой команды."}]}`);
}
} else if (message === "-mystic despawn") {
if (player.hasTag("admin")) {
data.cancel = true;
player.runCommandAsync("scriptevent mystic:despawn");
} else {
player.runCommandAsync(`tellraw @s {"rawtext":[{"text":"§cНедостаточно прав для использования этой команды."}]}`);
}
} else if (message === "-mystic") {
data.cancel = true;
player.runCommandAsync("scriptevent mystic:mystic");
} else {
}
});
© 2023 Quttera Ltd. All rights reserved.