? Photophobic Mobs
一款轻量级、高度可配置的 Fabric、Forge 和 NeoForge 模组,彻底重构了生物对光、热和黑暗的反应方式。
Photophobic Mobs 在畏光的怪物、暗影追踪者以及趋光生物之间引入了动态对比,将光源转化为战术生存工具,并为生物行为注入真实的生命力!
? 阳光与阴影机制
1. 畏光生物 (僵尸、骷髅、幻翼 & 可配置生物) ?
- 回避光线: 怪物会主动逃离被照亮的方块(如火把、灯笼等),寻求黑暗中的庇护。
- 手持与掉落光源恐惧: 当玩家手中持有火把或将其扔在地上时,附近的怪物会后退避让。
- 火与熔岩恐慌: 生物会积极扫描并寻路避开危险的火焰、营火和熔岩。
- 恐慌效果: 逃跑时,生物会释放烟雾和愤怒村民粒子特效,偶尔还会获得短暂的加速冲刺效果。
2. 趋光生物 (苦力怕、蜘蛛 & 可配置生物) ?️
- 飞蛾扑火: 在黑暗中游荡的苦力怕和蜘蛛会被明亮的光源和火把自然吸引。
- 夜间基地入侵: 如果夜间疏于防守,照明良好的避难所将成为主要攻击目标!请注意你的夜间警戒范围!
3. 双重行为生物 (蝙蝠、飞行生物 & 模组生物) [v1.2.0 新增] ?
- 兼得两者之长: 此类生物像飞蛾一样被柔和的光源(火把、灯笼)吸引,但一旦发现破坏性热源(营火、火焰、熔岩),会立即恐慌并逃离。
- 原生 3D 飞行 AI: 蝙蝠会从天花板栖息处醒来,平滑地飞向火把并在其周围盘旋,检测到危险时则进行全 3D 空间的快速逃离。
⚙️ 核心特性
- 实时命令: 使用
/photophobic 命令即时更新生物列表和设置,无需重启服务器。
- 100% 专用服务器与局域网兼容: 基于原生的 Minecraft Goal AI 在服务端构建,客户端甚至无需安装该模组即可加入游戏!
- 零 TPS 延迟: 通过实体 ID 将区块扫描均匀分布在 1 秒的时间间隔内(Tick 交错),即使加载区块内有 50+ 个生物也能防止卡顿峰值。
- 整合包安全: 包含区块加载保护(
hasChunkAt)和 $O(1)$ 缓存的注册表检查。
?️ 配置
所有内容均通过 .minecraft/config/photophobicmobs.json 进行配置,并使用 /photophobic reload 命令即时重载。
生物分类:
fleeMobIds:躲避光线逃向黑暗的生物 (僵尸、骷髅).
attractMobIds:夜间被光源吸引的生物 (苦力怕、蜘蛛).
dualBehaviorMobIds:被光源(火把)吸引,但会逃离火焰和熔岩的生物 (蝙蝠、昆虫).
物品与危险格式化 (lightItemIds):
"minecraft:torch=8.0" 设置自定义的 8 格检测半径。
"minecraft:glowstone" 使用默认半径。
"minecraft:campfire=12.0:flee" 标记为 :flee,使具有双重行为的生物主动逃离它。
- 完全支持任何模组方块或物品!
? 游戏内命令 (OP 等级 2)
/photophobic reload 即时重载 photophobicmobs.json。
/photophobic addflee <id> / /photophobic removeflee <id> 添加/移除畏光逃跑的生物。
/photophobic addattract <id> / /photophobic removeattract <id> 添加/移除趋光生物。
/photophobic adddual <id> / /photophobic removedual <id> 添加/移除具有双重行为的生物。
/photophobic addlight <id> 将物品/方块添加到光源注册表中。
? 多版本支持
官方发布版本针对以下版本进行了原生编译和测试:
- Minecraft 1.19.4 – 1.20.1 (Fabric & Forge)
- Minecraft 1.20.5 – 1.21.1 (Fabric & NeoForge)
- Minecraft 26.1 – 26.3 (Fabric & NeoForge)
(Fabric 需要 Fabric Loader 0.15.0+ 和 Fabric API;Forge 和 NeoForge 版本原生运行。)
? 错误报告与反馈
发现了奇怪的生物交互,或希望支持特定的模组实体?欢迎在我们的追踪器上留下评论或提交问题!
? Photophobic Mobs
A lightweight, highly configurable Fabric, Forge & NeoForge 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 natively for:
- Minecraft 1.19.4 – 1.20.1 (Fabric & Forge)
- Minecraft 1.20.5 – 1.21.1 (Fabric & NeoForge)
- Minecraft 26.1 – 26.3 (Fabric & NeoForge)
(Fabric requires Fabric Loader 0.15.0+ and Fabric API; Forge & NeoForge versions run natively.)
? 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!
评论 0
登录后参与评分
还没有评论,来抢沙发吧