PhotophobicMobs-1.1.5-mc1.21.2-1.21.4.jar
Curse Maven Snippet
What's new
🚀 Photophobic Mobs - Update v1.1.5
AI & Light Logic Fixes
- Functional Torch Repel: The
enableTorchRepelconfig 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
fleeHeldLightRadiusorfleeDroppedItemRadiusto0.0now 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
attractLightThresholdbeing 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 <mobId>or/photophobic removeattract <mobId>now immediately updates all loaded mobs in the world and strips their light AI in real-time. - Clean State Transitions: Added proper
stop()handlers to flee/attract goals, preventing mobs from aimlessly running to old target vectors when goals finish or are cancelled.
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.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects

