promotional bannermobile promotional banner

Photophobic Mobs

Zombies and Skeletons flee from light sources, while Creepers and Spiders are attracted to them.
Back to Files

PhotophobicMobs-1.1.0.jar

File namePhotophobicMobs-1.1.0.jar
Uploader
WalzayzaWalzayza
Uploaded
Jul 23, 2026
Downloads
42
Size
24.4 KB
Mod Loaders
Fabric
File ID
8495248
Type
R
Release
Supported game versions
  • 26.2
  • 26.1.2
  • 26.1.1
  • 26.1
  • 1.20-Snapshot
  • 1.21-Snapshot
  • 1.21.2-Snapshot
  • 1.21.6-snapshot
  • 1.21.1-Snapshot
  • 1.21.5-Snapshot
  • 1.21.4-Snapshot
  • 1.21.9-snapshot
  • 1.21.11-snapshot
  • 1.21.11
  • 1.21.10
  • 1.21.9
  • 1.21.8
  • 1.21.7
  • 1.21.6
  • 1.21.5
  • 1.21.4
  • 1.21.3
  • 1.21.2
  • 1.21.1
  • 1.21
  • 1.20.2-Snapshot
  • 1.20.5-Snapshot
  • 1.20.3-Snapshot
  • 1.20.6
  • 1.20.5
  • 1.20.4
  • 1.20.3
  • 1.20.2
  • 1.20.1
  • 1.20

Curse Maven Snippet

Fabric

modImplementation "curse.maven:photophobic-mobs-1620872:8495248"

Learn more about Curse Maven

What's new

🚀 Photophobic Mobs - Update v1.1.0

🧠 AI & Flee Behavior Improvements

  • Smart Vector Fleeing: Fixed an issue where mobs holding light would accidentally flee toward other nearby light sources. Mobs now retreat directly away from light sources straight into pitch darkness.
  • Navigation & Wall Collision Fix: Improved pathfinding logic so fleeing mobs no longer get stuck running into solid walls or dangerous cliffs.

⚡ Performance & Server Optimization

  • Reflection-Free AI: Removed heavy reflection checks in nighttime detection for zero-overhead tick logic.
  • Optimized Block Scanning: Drastically reduced spatial block lookups (fire & lava scanning reduced from 800+ to 25 blocks) to maintain a smooth 20.0 TPS on multiplayer servers.
  • Throttled Pathfinding: Flee AI recalculations are now throttled to run every 6 ticks for maximum performance.

🛠️ Admin Commands & Permissions

  • Server Admin Commands: Added /photophobic commands (OP / Singleplayer Host required):
    • /photophobic addflee <mob_id> - Add a mob to the light-phobic list.
    • /photophobic removeflee <mob_id> - Remove a mob from the light-phobic list.
    • /photophobic addattract <mob_id> - Add a mob to the light-attracted list.
    • /photophobic removeattract <mob_id> - Remove a mob from the light-attracted list.
    • /photophobic list - View active configuration lists in chat.
    • /photophobic reload - Reload config from disk.
  • GUI Security: Restricted /photophobicconfig in-game menu access exclusively to Server Operators (OP) and Singleplayer hosts.

🧹 Cleanup & Compatibility

  • Torch Attack Cleanup: Removed the torch hit knockback event for a smoother, purely AI-driven survival experience.

This mod has no related projects