promotional bannermobile promotional banner

Photophobic Mobs (Fabric & Sinytra)

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

PhotophobicMobs-1.2.0-mc26.1-26.2.jar

File namePhotophobicMobs-1.2.0-mc26.1-26.2.jar
Uploader
WalzayzaWalzayza
Uploaded
Sep 3, 2026
Downloads
113
Size
31.6 KB
Mod Loaders
FabricQuilt
File ID
8803059
Type
R
Release
Supported game versions
  • 26.1-snapshot
  • 26.3-snapshot
  • 26.3
  • 26.2
  • 26.1.2
  • 26.1.1
  • 26.1

Curse Maven Snippet

Fabric

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

Quilt

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

Learn more about Curse Maven

What's new

🚀 Photophobic Mobs - Update v1.2.0 (Changelog)

Dual-Behavior System

  • Dual Mob Support (dualBehaviorMobIds): Added a brand-new mob category. Mobs in this list (like Bats or modded insects) are attracted to ambient light sources (torches, lanterns) like moths, but actively panic and flee from destructive heat sources (campfires, fire, lava).
  • Native Flying Mob & Bat Physics: Upgraded AI entity handling from PathfinderMob to Mob. Bats now wake from ceiling roosting, smoothly fly in 3D towards light, flutter around torches, and flee in panic from fire and lava.

Flexible Per-Item Radii & Danger Tagging

  • Custom Detection Radii (lightItemIds): Each light or danger source can now have its own custom radius (e.g., "minecraft:torch=8.0").
  • Simplified Danger Tagging (:flee): Mark any block or item with :flee to treat it as a hazard (e.g., "minecraft:campfire=12.0:flee", "minecraft:lava=10.0:flee"). Dual-behavior mobs will only flee from sources tagged with :flee.

High-Density & Modpack Performance (Zero TPS Lag)

  • Entity ID Tick-Staggering: Block searches are distributed across 20-tick (1-second) intervals using entity IDs, ensuring zero TPS drops even with 50+ mobs in loaded chunks.
  • Unloaded Chunk Protection: Search routines now verify chunk states (hasChunkAt), preventing chunk-loading stalls and world thread locks on heavy modpacks.
  • Dynamic Danger Caching: Added $O(1)$ danger tracking that instantly detects newly placed hazards (like placing lava in front of a mob) without repetitive scanning.

This mod has no additional files