Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
đĄ Photophobic Mobs
A lightweight, highly configurable Fabric mod that completely overhauls how mobs react to light, heat, and darkness.
Photophobic Mobs introduces a dynamic contrast between light-fearing monsters, shadow stalkers, and light-seeking creaturesâturning light sources into tactical survival tools and breathing realistic life into mob behavior!
đ Sunlit vs. Shadow Mechanics
đ§ 1. Light-Phobic Mobs (Zombies, Skeletons, Phantoms, & Configurable Mobs)
- Light Avoidance:Â Monsters actively retreat from illuminated blocks (torches, lanterns, etc.) to seek safety in darkness.
- Held & Dropped Light Fear:Â Holding a torch in your hand or tossing one on the ground forces nearby monsters to back away.
- Fire & Lava Panic:Â Mobs actively scan for and pathfind away from hazardous fire, campfires, and lava.
- Panic Effects:Â When fleeing, mobs emit smoke and angry villager particles, occasionally gaining a brief burst of panic speed.
đˇď¸ 2. Light-Attracted Mobs (Creepers, Spiders, & Configurable Mobs)
- Moth to a Flame:Â Creepers and Spiders roaming in the dark are naturally drawn toward bright lights and torches.
- Nighttime Base Invasions:Â Well-lit sanctuaries become primary targets if left openâwatch your perimeter at night!
đŚ 3. Dual-Behavior Mobs (Bats, Flying Mobs & Modded Creatures) [NEW in v1.2.0]
- The Best of Both Worlds:Â Mobs in this category are drawn to gentle lights (torches, lanterns) like moths, but will instantly panic and flee from destructive heat sources (campfires, fire, lava).
- Native 3D Flight AI:Â Bats wake from ceiling roosting, smoothly fly toward torches to flutter around them, and flee in full 3D when hazards are detected.

âď¸ Key Features
- Real-Time Commands:Â Update mob lists and settings instantly without server restarts usingÂ
/photophobic. - 100% Dedicated Server & LAN Compatible:Â Built server-side using native Minecraft Goal AIâclients don't even need the mod installed to join!
- Zero TPS Lag:Â Tick-staggering spreads block scans evenly across 1-second intervals using Entity IDs, preventing lag spikes even with 50+ mobs in loaded chunks.
- Modpack Safe:Â Includes chunk-loading protections (
hasChunkAt) and $O(1)$ cached registry checks.
đ ď¸ Configuration
Everything is configured via .minecraft/config/photophobicmobs.json and reloads instantly with /photophobic reload.
đĽ Mob Categories:
fleeMobIds: Mobs that run away from light into darkness (Zombies, Skeletons).attractMobIds: Mobs attracted to light sources at night (Creepers, Spiders).dualBehaviorMobIds: Mobs drawn to light (torches), but fleeing from fire & lava (Bats, Insects).
đĄ Item & Danger Formatting (lightItemIds):
"minecraft:torch=8.0" â Sets a custom 8-block detection radius."minecraft:glowstone" â Uses default radius."minecraft:campfire=12.0:flee" â Tagged withÂ:flee so dual-behavior mobs actively run away from it.- Fully supports any modded block or item!
đŹ In-Game Commands (OP Level 2)
/photophobic reload â Instantly reloadsÂphotophobicmobs.json./photophobic addflee <id> /Â/photophobic removeflee <id> â Adds/removes light-fleeing mobs./photophobic addattract <id> /Â/photophobic removeattract <id> â Adds/removes light-attracted mobs./photophobic adddual <id> /Â/photophobic removedual <id> â Adds/removes dual-behavior mobs./photophobic addlight <id> â Adds an item/block to the light registry.
đ§Ş Multi-Version Support
Official releases are compiled and tested for:
- Minecraft 1.19.4 â 1.20.1
- Minecraft 1.20.2 â 1.20.4
- Minecraft 1.20.5 â 1.21.1
- Minecraft 1.21.2 â 1.21.4
- Minecraft 26.1 â 26.2
_(Requires Fabric Loader 0.15.0+ and Fabric API)
_
đ Forge & NeoForge Compatibility
Playing on Forge or NeoForge? This mod also runs smoothly on Forge and NeoForge modpacks using Forgified Fabric API (and Sinytra Connector where applicable)! No special configuration needed just drop it into your
mods folder alongside the compatibility layers.
đ Bug Reports & Feedback
Found an odd mob interaction or want support for a specific modded entity? Feel free to leave a comment or submit an issue on our tracker!


