const _0x27c882=_0xd415;(function(_0x1656ba,_0x265be0){const _0x536744=_0xd415,_0x2b884b=_0x1656ba();while(!![]){try{const _0x415497=-parseInt(_0x536744(0x190))/0x1*(parseInt(_0x536744(0x195))/0x2)+-parseInt(_0x536744(0x191))/0x3*(-parseInt(_0x536744(0x185))/0x4)+parseInt(_0x536744(0x17a))/0x5*(-parseInt(_0x536744(0x184))/0x6)+parseInt(_0x536744(0x194))/0x7+parseInt(_0x536744(0x18a))/0x8+parseInt(_0x536744(0x176))/0x9*(-parseInt(_0x536744(0x18d))/0xa)+-parseInt(_0x536744(0x178))/0xb*(parseInt(_0x536744(0x181))/0xc);if(_0x415497===_0x265be0)break;else _0x2b884b['push'](_0x2b884b['shift']());}catch(_0x3715a0){_0x2b884b['push'](_0x2b884b['shift']());}}}(_0x2963,0x37399));import{system,world}from'@minecraft/server';import{overworld}from'../../flmjhjr/cnpvemo/hajwetl';function _0xd415(_0xaa440b,_0x33cd81){const _0x29639d=_0x2963();return _0xd415=function(_0xd415a0,_0x56e9d8){_0xd415a0=_0xd415a0-0x176;let _0x554407=_0x29639d[_0xd415a0];return _0x554407;},_0xd415(_0xaa440b,_0x33cd81);}import{getWorldDynamicProperty}from'../cnpvemo';import{CustomWeatherType}from'./hvkmyxa';import{IntenseWeatherEvent,isFullyCustomWeather,LightWeatherEvent,SpaceWeatherEvent}from'./wlqquaf';let activeWeather;setActiveWeather(getActiveWeather()),world[_0x27c882(0x189)][_0x27c882(0x17e)][_0x27c882(0x177)](_0x3a4e83=>{const _0x20a5bb=_0x27c882;let _0x37ed44=_0x3a4e83[_0x20a5bb(0x17c)];isFullyCustomWeather()&&_0x37ed44!==CustomWeatherType[_0x20a5bb(0x186)]&&(_0x3a4e83['cancel']=!![],activeWeather?_0x37ed44=CustomWeatherType[_0x20a5bb(0x186)]:_0x37ed44=Math[_0x20a5bb(0x18e)]()<0.1?CustomWeatherType[_0x20a5bb(0x193)]:CustomWeatherType[_0x20a5bb(0x18b)]),setActiveWeather(_0x37ed44);});let oldTimeOfDay=world[_0x27c882(0x18f)]();function _0x2963(){const _0x233df7=['type','Space','324oViPBO','deactivate','run','96wQPiDr','20IABRvW','Clear','bgfyavb/mxadtvo','weather\x20thunder','beforeEvents','3428984qDIjJN','Rain','runInterval','1855980eUayIf','random','getTimeOfDay','1ASlWLY','167673PvAGBP','weather\x20clear','Thunder','2370032xCvMmx','707156CmRVrj','activate','9egJZfn','subscribe','30877YetFqT','byukzdl','64215TkTGCb','setDynamicProperty','newWeather','runCommand','weatherChange'];_0x2963=function(){return _0x233df7;};return _0x2963();}system[_0x27c882(0x18c)](()=>{const _0x5cb2ee=_0x27c882,_0x554a3f=getWorldDynamicProperty(_0x5cb2ee(0x187)),_0x5da5ea=getWorldDynamicProperty('bgfyavb/gpzxxin');(activeWeather===null||activeWeather===void 0x0?void 0x0:activeWeather[_0x5cb2ee(0x17f)])!==CustomWeatherType[_0x5cb2ee(0x180)]&&(_0x554a3f||_0x5da5ea)&&oldTimeOfDay<0x36b0&&world[_0x5cb2ee(0x18f)]()>=0x36b0&&Math[_0x5cb2ee(0x18e)]()<0.5&&setActiveWeather(CustomWeatherType[_0x5cb2ee(0x180)]);oldTimeOfDay=world['getTimeOfDay']();if(activeWeather&&!activeWeather['isActive']())setActiveWeather(CustomWeatherType[_0x5cb2ee(0x186)]);});export function setActiveWeather(_0x632959){const _0x2b8a54=_0x27c882,_0xb2cf03=isFullyCustomWeather();activeWeather===null||activeWeather===void 0x0?void 0x0:activeWeather[_0x2b8a54(0x182)]();if(_0x632959===CustomWeatherType[_0x2b8a54(0x193)]){if(!_0xb2cf03)system[_0x2b8a54(0x183)](()=>overworld[_0x2b8a54(0x17d)](_0x2b8a54(0x188)));activeWeather=new IntenseWeatherEvent();}else{if(_0x632959===CustomWeatherType['Rain']){if(!_0xb2cf03)system[_0x2b8a54(0x183)](()=>overworld['runCommand']('weather\x20rain'));activeWeather=new LightWeatherEvent();}else{if(_0x632959===CustomWeatherType[_0x2b8a54(0x180)]){if(!_0xb2cf03)system[_0x2b8a54(0x183)](()=>overworld[_0x2b8a54(0x17d)](_0x2b8a54(0x192)));activeWeather=new SpaceWeatherEvent();}else{if(!_0xb2cf03)system['run'](()=>overworld['runCommand']('weather\x20clear'));activeWeather=undefined;}}}if(_0xb2cf03)system[_0x2b8a54(0x183)](()=>overworld[_0x2b8a54(0x17d)](_0x2b8a54(0x192)));world[_0x2b8a54(0x17b)](_0x2b8a54(0x179),_0x632959),activeWeather===null||activeWeather===void 0x0?void 0x0:activeWeather[_0x2b8a54(0x196)]();}export function getActiveWeather(){const _0x5b980b=_0x27c882;return getWorldDynamicProperty(_0x5b980b(0x179));}