Photophobic Mobs 1.1.5-mc1.20.2-1.20.4
Список изменений
🚀 Photophobic Mobs - Update v1.1.5
AI & Light Logic Fixes Functional Torch Repel: The enableTorchRepel config setting is now fully integrated into the AI logic. When turned off, mobs will ignore placed torches and block light while still reacting to held/dropped lights or fire/lava if enabled. Fixed Zero-Radius Hitbox Bug: Setting fleeHeldLightRadius or fleeDroppedItemRadius to 0.0 now completely disables held/dropped light detection instead of checking the mob's own collision hitbox. Fixed Light-Source Spawning (Zero-Delta Vector): Mobs spawning or standing directly on top of a light source (torch, fire, lava) no longer freeze or fail pathfinding. A new fallback safely routes them to the nearest dark, walkable area.
Dynamic Attraction Threshold:
Fixed attractLightThreshold being ignored by Creepers and Spiders; it now strictly follows your custom config value rather than a hardcoded light level.
Real-Time Commands & Goal Cleanup
Instant Mob Removal: Running /photophobic removeflee
Performance & Server Optimization (Zero TPS Lag) $O(1)$ Registry Cache: Replaced all runtime String checks during entity ticks with lightning-fast, zero-allocation $O(1)$ Hash Set lookups, keeping server tick rates (TPS) completely smooth even with hundreds of active mobs. Safe Search Boundaries: Added safety clamps to search radii to prevent lag spikes on heavily populated servers. Streamlined Client Architecture: Removed the outdated client GUI to prevent desyncs on Dedicated and LAN servers; all configuration is now cleanly managed via server commands and photophobicmobs.json.

