/* Copyright 2025 <FireWave Interactive>. This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. You may not use this work for commercial purposes, and you may not alter, transform, or build upon this work. For more details, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ */
const _0x2a8f9d=_0x14ba;function _0x2e22(){const _0x2b9787=['removeTag','onInitialize','addTickInterval','setupFlashDetection','2092qzsuzZ','isPlayerLookingAtEntity','dimension','bind','1687194WOhOTW','282392NaYeDc','178RkMLlN','getDimension','can_flash','961748SPSclL','hasTag','includes','49IIBwVX','FLASH_CHECK_INTERVAL','updateFlashDetection','location','getViewDirection','5467581SaRVqi','CoreModule','some','2320002GKEQFd','typeId','460185Nnktbo'];_0x2e22=function(){return _0x2b9787;};return _0x2e22();}(function(_0x47160c,_0x3badb2){const _0x5c5130=_0x14ba,_0x1ae991=_0x47160c();while(!![]){try{const _0x453f4b=-parseInt(_0x5c5130(0x135))/0x1*(-parseInt(_0x5c5130(0x13b))/0x2)+-parseInt(_0x5c5130(0x149))/0x3+-parseInt(_0x5c5130(0x13e))/0x4+parseInt(_0x5c5130(0x14b))/0x5+parseInt(_0x5c5130(0x139))/0x6+-parseInt(_0x5c5130(0x141))/0x7*(-parseInt(_0x5c5130(0x13a))/0x8)+parseInt(_0x5c5130(0x146))/0x9;if(_0x453f4b===_0x3badb2)break;else _0x1ae991['push'](_0x1ae991['shift']());}catch(_0x311345){_0x1ae991['push'](_0x1ae991['shift']());}}}(_0x2e22,0x61b7f));import{world}from'@minecraft/server';import{FLASH_ENTITIES_IDS}from'main/util/data';function _0x14ba(_0xc7584b,_0x1db47c){const _0x2e227d=_0x2e22();return _0x14ba=function(_0x14ba5c,_0x563090){_0x14ba5c=_0x14ba5c-0x135;let _0x1528cf=_0x2e227d[_0x14ba5c];return _0x1528cf;},_0x14ba(_0xc7584b,_0x1db47c);}import _0x54eeb4 from'./scripting';const MAX_FLASH_DISTANCE=0x10,FLASH_TAG=_0x2a8f9d(0x13d);export default class CoreModule extends _0x54eeb4{[_0x2a8f9d(0x142)]=0x1;constructor(_0x2a1dec=!![]){const _0x362a3a=_0x2a8f9d;super(_0x362a3a(0x147),_0x2a1dec);}[_0x2a8f9d(0x14d)](){const _0x5049ed=_0x2a8f9d;this[_0x5049ed(0x14f)]();}['setupFlashDetection'](){const _0x104030=_0x2a8f9d;this[_0x104030(0x14e)](this[_0x104030(0x142)],this['updateFlashDetection'][_0x104030(0x138)](this));}[_0x2a8f9d(0x143)](){const _0x599862=_0x2a8f9d;for(const _0x18cb58 of world['getPlayers']()){const _0x197725=this[_0x599862(0x136)](_0x18cb58,FLASH_ENTITIES_IDS,MAX_FLASH_DISTANCE);if(_0x197725){if(!_0x18cb58['hasTag'](FLASH_TAG))_0x18cb58['addTag'](FLASH_TAG);}else{if(_0x18cb58[_0x599862(0x13f)](FLASH_TAG))_0x18cb58[_0x599862(0x14c)](FLASH_TAG);}}}[_0x2a8f9d(0x136)](_0x179d78,_0x18f99e,_0x26fa33){const _0x351a45=_0x2a8f9d,{x:_0x4c701b,y:_0x2a482a,z:_0x4a5414}=_0x179d78[_0x351a45(0x144)],{x:_0x426b35,y:_0x39b070,z:_0x51e9fe}=_0x179d78[_0x351a45(0x145)](),_0x38273a={'x':_0x4c701b+_0x426b35*_0x26fa33,'y':_0x2a482a+_0x39b070*_0x26fa33,'z':_0x4a5414+_0x51e9fe*_0x26fa33},_0x1b484c=world[_0x351a45(0x13c)](_0x179d78[_0x351a45(0x137)]['id'])['getEntities']({'location':_0x38273a,'maxDistance':_0x26fa33});return _0x1b484c[_0x351a45(0x148)](_0x506633=>_0x18f99e[_0x351a45(0x140)](_0x506633[_0x351a45(0x14a)]));}}