在原版 Minecraft 中,铁傀儡在保护村民方面表现得一塌糊涂。本模组彻底重构了铁傀儡选择目标的方式及其攻击范围,使其能够主动从危险中保护村民,而不是被随机刷新的生物分散注意力,甚至完全无动于衷。
功能特性
- 铁傀儡拥有全新的攀爬动画,使它们能够跨越更高的障碍物。
- 铁傀儡会接收来自村民的求救信号,并随即攻击正在伤害它们的实体。
- 由于村民发出 SOS 信号,铁傀儡检测生物的范围比原版更广。
- 不会攻击村民的生物(如蜘蛛或骷髅)不会被铁傀儡视为目标。
- 不构成威胁的生物,例如掉进坑洞或洞穴中的僵尸,也不会被铁傀儡视为目标。
- 除非有处于危险中的村民也在其中,否则铁傀儡不会进入那些无法逃脱的区域。
- 路径计算在后台的独立线程中进行,因此大范围搜索不会导致主线程卡顿。
- 如果村庄是安全的,铁傀儡会恢复为原版行为(徘徊、赠送玫瑰以及巡逻)。
- 铁傀儡在追逐目标时眼睛会变红。
展示与原版对比:
-
[可选] 铁傀儡可以挥动双臂攀爬高度超过 1 格的障碍(仅在村民处于危险时生效):
-
铁傀儡不会进入无法脱身的区域,最多只会从边缘进行战斗:
剧透
- 铁傀儡可以跳跃到无法脱身的区域以拯救村民:
剧透
- 铁傀儡会全速前往拯救远处的村民:
剧透
工作原理
- 铁傀儡会持续(异步、离线且快速)扫描周围环境,检查是否存在它们不应进入的区域,例如深达 2 格的坑洞、洞穴或深水。
- 当村民受到攻击或陷入恐慌时,它们会向半径 48 格(可配置)内的所有铁傀儡广播即时 SOS 信号。
- 铁傀儡会在离线状态下评估安全路径以避免卡顿。它们可以跳下高达 32 格(可配置)的悬崖,并跳入危险区域以拯救村民。
- 在执行紧急救援期间,铁傀儡获得 +20% 的冲刺速度加成(可配置),并且可以在扫描范围之外继续追击最多 10 格距离的目标。
- 如果怪物被困在坑洞或危险区域,且村民没有风险,铁傀儡会从坑边攻击这些生物,或者直接放弃纠缠。
- 当目标丢失或死亡时,铁傀儡会停止纠缠。
免责声明
我进行了广泛的测试,并为此设置了大量的调试标志。 然而,电子游戏尤其是 Minecraft 中的 AI 开发 notoriously difficult(臭名昭著的困难),所以如果你发现任何 Bug,请报告给我,我会迅速修复它们。
In vanilla Minecraft, Iron Golems are sooooo bad at protecting villagers. This mod overhauls how golems choose their targets and how far they reach for targets, making them actively defend villagers from danger instead of getting distracted by random mobs, or not acting at all.
Features
- Golems have a new climbing animation that let's them traverse higher obstacles.
- Golems receive distress signals from villagers, then proceed to attack what's hurting them.
- Range of mob detection (due to sos by villager) is higher than vanilla.
- Mobs that don't attack villagers (like spiders or skeletons) aren't targeted by golems.
- Mobs that are not a threat, such as zombies stuck in pits or caves, are not targeted by golems.
- Golems will not wander inside places they can't get out of, unless a villager in danger is inside too.
- Paths are calculated in the background on a separate thread, so large search ranges don't lag the main thread.
- If the village is safe, golems fall back to normal vanilla behavior (wandering, handing out roses, and patrolling).
- Golems have red eyes when pursuing their victim.
Showcase & Comparisons with vanilla:
-
[OPTIONAL] Golems can swing their arms to climb > 1 blocks (only if villagers are in danger):
-
Golems don't go in unrecoverable spots, at most they fight from rims:
Spoiler
- Golem can leap in unrecoverable spots to save villagers:
Spoiler
- Golems rush to save villagers far away:
Spoiler
How It Works
- Golems continuously (async, off-thread and fast) scan their surroundings to check for places they shouldn't go in, such as 2 blocks deep pits, caves or deep water.
- When a villager is attacked or panics, they broadcast an instant SOS signal to all golems within a 48-block (configurable) radius.
- Golems evaluate safe paths off-thread to avoid lag. They can drop down cliffs up to 32 blocks (configurable) and leap into dangerous places to save villagers.
- Golems gain a +20% sprint speed boost (configurable) during active rescues, keep pursuing up to 10 blocks past the scan radius.
- If a monster is trapped in a pit or dangerous place, and villagers are not at risk, the golems will hit the mobs from the edge of the pit, or outright disengage.
- Golem disengages when the target is lost or dead.
Disclaimer
I did extensive testing and I have a lot of debug flags just for that. However, AI in video games and especially minecraft is a notoriously difficult endeavor, so please, if you find bugs, report them and I will quickly fix them.
下载 Golems Actually Protect Villagers
下载 Golems Actually Protect Villagers
下载 Golems Actually Protect Villagers
下载 Golems Actually Protect Villagers
下载 Golems Actually Protect Villagers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Golems Actually Protect Villagers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Golems Actually Protect Villagers
下载 Golems Actually Protect Villagers
下载 Golems Actually Protect Villagers
下载 Golems Actually Protect Villagers
- 修复了 1.20.1 版本的启动崩溃问题,这次是真正的修复
- 修复了在 1.20.1 版本下的启动崩溃问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
让你能够在世界中的任何位置定位结构。
模组
为你的终界增添新生物群系、神秘仪式和全新生物
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
更多生物群系,更多生物,更多工具,为炽热的维度
模组
一堆修复
评论 0
登录后参与评分
还没有评论,来抢沙发吧