Fear of Anything
自定义生物 AI,让任何生物恐惧任何物品、方块或玩家。这是控制生物、自动化农场和创意基地防御的终极工具。服务端运行、轻量级且完全可配置。
全面掌控生物 AI。由你决定它们恐惧什么。
你是否已经厌倦了千篇一律的生物行为?是否想要建造真正独特的基地防御系统,或者设计一个复杂且自动化的生物农场?源自 Fear of Fire 的作者,Fear of Anything 将这一概念进化为一款强大且通用的工具,让你对生物 AI 拥有完全的控制权。
这款服务端模组允许你为游戏中的任何生物(包括来自其他模组的生物)创建基于恐惧的规则。可以让苦力怕逃离花朵,让僵尸躲避手持金剑的玩家,甚至可以让强大的模组 Boss 退避于一块简单的羊毛方块。支持 NBT 数据、方块状态,以及通过数据包实现的阶段性创伤与繁殖功能,这使得在生物控制、自动化和游戏性设计方面的创意潜力无限。
示例数据包(包含创伤和繁殖规则)可在以下地址找到:
主要特性
- ? 可定制的生物 AI: 模组的核心。通过定义令生物恐惧的事物,获得对生物行为的精确控制。是整合包制作者和技术型玩家的必备模组。
- ? 针对任意生物(支持 NBT 数据): 可以将原版或模组中的任何生物添加到恐惧组中。可以针对所有僵尸,也可以仅针对拥有特定名称或穿着特定盔甲的那些。
- ?️ 恐惧物品(支持 NBT 数据): 让生物逃离手持物品的玩家,或者逃离地上的物品。这包括模组物品和特定的 NBT 数据,从而允许创造独特的工具,例如“苦力怕驱逐棒”。
- ? 恐惧方块(支持 方块状态): 指定任意方块作为恐惧源。该系统足够智能,能够检查特定的方块状态,例如杠杆处于
powered:true状态或栅栏处于waterlogged:true状态。 - ? 两种配置方式:TOML 与 数据包:
使用经典的firefearmod-common.toml来设置简单、全局的恐惧规则,或者启用新的代际创伤系统,一切均由 JSON 数据包驱动(非常适合整合包和服务器)。 - ? 服务端 运行 & 轻量级: 模组完全在服务端运行,因此玩家无需安装。AI 检查经过高度优化,对性能影响极小,确保在任何服务器上都能获得流畅的体验。
- ?️ 可选的 Sound Attract 集成: 如果安装了 Sound Attract 模组,Fear of Anything 将自动使用其视野(FOV)和潜行检测,使恐惧行为尊重潜行移动和自定义视野锥。
v3.0.0 新增内容 – 代际创伤与繁殖
? 基于阶段的代际创伤(由数据包驱动)
开启:
INTERGENERATIONAL_TRAUMA_ENABLED(默认值:false)
……即可解锁由数据包控制的基于阶段的恐惧系统:
- 生物现在拥有按组划分的创伤阶段。早期阶段较为简单,后期阶段可以是条件性的。
- 示例:奶牛在阶段 0 时恐惧火焰类方块。在被玩家击中后,该奶牛——以及附近的其他奶牛——可以解锁阶段 1,此时它们开始恐惧玩家。
- 创伤还可以传播并遗传:
- 经验:受到某些来源的伤害。
- 目击:目睹附近发生的不幸事件。
- 遗传:幼崽可以从父母那里继承创伤阶段。
- 每组的最大阶段数由以下参数限制:
MAX_TRAUMA_STAGES_PER_GROUP(默认值:3)
所有这些都在数据包内的 JSON 创伤组中定义,因此整合包制作者可以在不触碰核心配置的情况下分发复杂的行为逻辑。
?️ 更智能的恐惧可见模式
数据包系统增加了每个实体的可见模式:
{ "type": "entity", "id": "minecraft:ocelot", "fear_override": true, "visibility_mode": "ALWAYS" }
visibility_mode: "ALWAYS"
只要生物看到目标,它就会感到恐惧。在上述示例中,该生物一见猫就会逃跑,并且由于"fear_override": true,即使猫通常是敌对的,它也不会主动攻击那只猫。- 默认情况(当省略
visibility_mode时)
只有当双方互相看见(相互视线)时,生物才会感到恐惧。这非常适合营造更像“决斗”或社交互动的场景。
这让你可以调整恐惧是更像“猎物对天敌的本能恐慌”,还是“只有在面对面凝视时才产生的恐慌”。
? 自然繁殖与强制繁殖系统(由数据包驱动)
使用数据包,你现在可以为每种生物定义自然和强制繁殖规则:
- 自然繁殖:
在一定范围内的同种生物会随时间自动繁衍后代,受限于附近的幼崽数量和每条规则的冷却时间。 - 强制繁殖(物品门槛):
繁殖还可以要求至少一方父母手持特定物品。
示例:
{
"enabled": true,
"mob": "minecraft:skeleton",
"child": "minecraft:skeleton",
"partner_radius": 8.0,
"cooldown_ticks": 3000,
"max_nearby_children": 8,
"consume_item": true,
"require_held_item": "minecraft:bone"
}
在此示例中,如果两只骷髅相距 8 格以内,且至少有一只手持骨头,它们就可以繁殖。由于原版中没有幼年骷髅,将会出生一只成年骷髅。其他生物(包括模组生物)也可以通过数据包进行类似的配置。
你可以在这里找到即用型的示例数据包(敌对生物、村民等):
你将创造什么?
这是一个供你发挥创意的沙盒。以下是一些灵感:
- 终极苦力怕防御: 让苦力怕对
minecraft:poppy(罂粟)方块感到恐惧。现在,你可以随心所欲地建造,因为你美丽的花园同时也是最好的防御工事。 - 自动化刷怪塔与放牧: 利用恐惧机制创建路径和分类系统来设计高级刷怪塔。使用特定物品作为“放牧权杖”,引导怪物前往你指定的位置进行高效养殖。
- 沉浸式基地防御: 打造符合你世界主题风格的防御体系。让掠夺者畏惧
minecraft:emerald_block(绿宝石块),从而在不建一堵墙的情况下保护你的村民交易大厅。 - 冒险地图与任务设计: 构建复杂的任务和谜题。制作一个“神圣护符”,迫使强大的 Boss 逃跑,从而让玩家能够进入新区域。其叙事潜力巨大。
- 即时安全区: 为了获得更简单的生存体验,可以让所有敌对生物畏惧
minecraft:crafting_table(工作台),无论走到哪里都能确保拥有一个绝对安全的庇护所。 - 世代相传的故事: 让怪物“记住”跨代际的创伤事件。一个幸存于袭击的村庄可能会抚养出对袭击者和玩家始终保持警惕的后代。
常见问题
问:如何配置怪物及其恐惧对象?
答:对于经典行为,请编辑配置文件:位于 config 文件夹中的 firefearmod-common.toml。对于新的创伤和繁殖系统,请使用 JSON 数据包。示例数据包可在此处获取:
问:这是否支持其他模组中的怪物和物品?
答:是的,完全支持。 你可以使用 ID 定位任何已注册的怪物、物品或方块(例如 thermal:blizz、ars_nouveau:source_gem)。NBT 和方块状态的支持确保了深度的兼容性。
问:这是用于 Forge 还是 Fabric?
答:该模组目前仅提供 Forge 版本。
问:这会拖慢我的服务器性能吗?
答:不会。 该模组将性能作为首要优化目标。AI 扫描过程高效且轻量,因此适用于各种规模的服务器。
Fear of Anything
Customize Mob AI to make any mob fear any item, block, or player. The ultimate tool for mob control, automated farms, and creative base defense. Server-side, lightweight, and fully configurable.
Total Control Over Mob AI. You Decide What They Fear.
Are you tired of predictable mob behavior? Do you want to build a truly unique base defense or design a complex, automated mob farm? From the creator of Fear of Fire, Fear of Anything evolves the concept into a powerful, universal tool that puts you in complete control of mob AI.
This server-side mod allows you to create fear-based rules for any mob in the game, including those from other mods. Make Creepers flee from flowers, make Zombies run from players holding a golden sword, or even make a powerful modded boss retreat from a simple block of wool. With support for NBT data, block states, and now stage-based trauma and breeding via datapacks, the possibilities for creative mob control, automation, and gameplay design are truly limitless.
Example datapacks (including trauma and breeding rules) are available here:
Key Features
- ? Customizable Mob AI: The core of the mod. Gain precise control over mob behavior by defining what scares them. A must-have for modpack creators and technical players.
- ? Target Any Mob (with NBT Support): Add any mob from vanilla or mods to a fear group. Target all zombies, or only those with a specific name or wearing specific armor.
- ?️ Fear of Items (with NBT Support): Make mobs flee from players holding an item, or from an item on the ground. This includes modded items and specific NBT data, allowing for unique tools like a "Creeper-Repelling-Stick."
- ? Fear of Blocks (with Block State Support): Designate any block as a source of fear. The system is smart enough to check for specific block states, like a lever being
powered:trueor a fence beingwaterlogged:true. - ? Two Ways to Configure: TOML & Datapacks:
Use the classicfirefearmod-common.tomlfor simple, global fear rules, or enable the new intergenerational trauma system to drive everything from JSON datapacks (perfect for packs and servers). - ? Server-Side & Lightweight: The mod runs entirely on the server, so players don't need to install it. The AI checks are highly optimized for minimal performance impact, ensuring a smooth experience on any server.
- ?️ Optional Sound Attract Integration: If the Sound Attract mod is installed, Fear of Anything will automatically use its FOV and stealth checks, so fear behavior respects stealthy movement and custom vision cones.
New in v3.0.0 – Intergenerational Trauma & Breeding
? Stage-Based Intergenerational Trauma (Datapack Driven)
Flip on:
INTERGENERATIONAL_TRAUMA_ENABLED(default:false)
…and you unlock a stage-based fear system controlled by datapacks:
- Mobs now have trauma stages per group. Early stages are simple, later stages can be conditional.
- Example: a cow fears fire-based blocks as stage 0. After being hit by a player, that cow – and any nearby cows – can unlock stage 1, where they now fear players.
- Trauma can also spread and be inherited:
- Experience: being hurt by certain sources.
- Witnessing: seeing bad things happen nearby.
- Inheritance: babies can inherit trauma stages from their parents.
- The maximum stage per group is capped by:
MAX_TRAUMA_STAGES_PER_GROUP(default:3)
All of this is defined in JSON trauma groups inside datapacks, so pack makers can ship complex behavior without touching the core config.
?️ Smarter Visibility Modes for Fears
The datapack system adds per-entity visibility modes:
{ "type": "entity", "id": "minecraft:ocelot", "fear_override": true, "visibility_mode": "ALWAYS" }
visibility_mode: "ALWAYS"
The mob will fear the target whenever it sees it. In the example above, the mob will flee from ocelots on sight, and with"fear_override": trueit will refuse to aggro that ocelot even if it is normally hostile.- Default (when
visibility_modeis omitted)
The mob only fears the target when both can see each other (mutual line of sight). This is great for more “duel-like” or social encounters.
This lets you tune whether a fear is more like “prey vs predator on sight” or “panic only when we’re really staring each other down.”
? Natural and Forced Breeding Systems (Datapack Driven)
Using datapacks, you can now define natural and forced breeding rules per mob:
- Natural breeding:
Mobs of the same type within range can automatically produce offspring over time, capped by nearby child count and per-rule cooldowns. - Forced breeding (item-gated):
Breeding can also require one of the parents to hold a specific item.
Example:
{
"enabled": true,
"mob": "minecraft:skeleton",
"child": "minecraft:skeleton",
"partner_radius": 8.0,
"cooldown_ticks": 3000,
"max_nearby_children": 8,
"consume_item": true,
"require_held_item": "minecraft:bone"
}
In this example, if two skeletons are within 8 blocks and at least one is holding a bone, they can breed. Since there is no baby skeleton in vanilla, an adult skeleton will be born. Other mobs (including modded ones) can be configured the same way via datapacks.
You can find ready-to-use example datapacks (hostile mobs, villagers, and more) here:
What Will You Create?
This is a sandbox for your creativity. Here are just a few ideas:
- Ultimate Creeper-Proofing: Make Creepers terrified of
minecraft:poppyblocks. Finally, you can build with whatever you want, knowing your beautiful flower garden is also your best defense. - Automated Mob Farms & Herding: Design advanced mob farms by creating pathways and sorting systems using fear. Use a specific item as a "herding wand" to guide mobs exactly where you want them to go for efficient farming.
- Immersive Base Defense: Create a thematic defense that fits your world. Make Pillagers fear
minecraft:emerald_block, protecting your villager trading hall without a single wall. - Adventure Map & Quest Design: Build complex quests and puzzles. Create a "Holy Amulet" that forces a powerful boss to flee, allowing players to access a new area. The narrative potential is huge.
- Instant Safe Zones: For a simpler survival experience, make all hostile mobs fear the
minecraft:crafting_table, giving you a guaranteed safe bubble wherever you go. - Generational Stories: Let mobs “remember” traumatic events across generations. A village that survived a raid might raise children who are permanently wary of raiders and players.
FAQ
Q: How do I configure the mobs and their fears?
A: For classic behavior, you edit the config file: firefearmod-common.toml in your config folder. For the new trauma and breeding systems, you use JSON datapacks. Example datapacks are available here:
Q: Does this work with mobs and items from other mods?
A: Yes, 100%. You can target any registered mob, item, or block using its ID (e.g., thermal:blizz, ars_nouveau:source_gem). The NBT and block state support ensures deep compatibility.
Q: Is this for Forge or Fabric?
A: This mod is currently available for Forge.
Q: Will this lag my server?
A: No. The mod was built with performance as a top priority. The AI scanning is efficient and lightweight, making it safe for servers of all sizes.
下载 Fear of Anything
下载 Fear of Anything
下载 Fear of Anything
下载 Fear of Anything
下载 Fear of Anything
下载 Fear of Anything
下载 Fear of Anything
下载 Fear of Anything
下载 Fear of Anything
下载 Fear of Anything
v4.1.6
更新日志:
- 修复了 flee_distance(逃跑距离)未被正确追踪的问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧