生物使用盾牌
本模组允许特定生物在战斗中有主动使用盾牌的行为,而不仅仅是将其作为装备持有。
当兼容的生物将盾牌装备到副手时,它会获得一种 AI 行为,使其能够举起盾牌来格挡 incoming 攻击,在短暂防御后恢复正常的战斗状态。
功能特性
- 生物可以举起盾牌来格挡攻击
- 格挡具有可配置持续时间和冷却时间
- 被格挡的攻击产生的击退效果减弱
- 类人型生物会显示正确的格挡动画
- 生物可以预判某些威胁并提前举起盾牌
- 斧头可以破坏生物的盾牌,类似于玩家与盾牌的交互机制
- 默认情况下,只有尸壳(Husk)、僵尸(Zombie)、卫道士(Vindicator)和凋灵骷髅(Wither Skeleton)有几率生成时携带盾牌。
- 用户可以自定义哪些生物可以生成时携带盾牌,以及其他行为参数。
常规配置
可以配置几种全局行为:
-
mobConsumeShieldDurability生物在格挡时是否消耗盾牌的耐久度。 -
mobAlwaysAnticipate强制生物始终使用预判逻辑。如果设置为false,则仅当局部难度 × 近期生命值损失超过随机阈值时,预判逻辑才会激活。(将此设置为 true 可能会使 PvE 战斗变得令人恼火。)
实体标签配置
你可以将不希望受此模组影响的实体类型添加到 mobsuseshields:disable_shield 标签中。这将禁用该模组对这些实体的盾牌行为注入。
这对于防止 AI 冲突很有用,例如针对那些已经拥有自己使用盾牌目标的生物(如 Guard Villagers)。
数据包配置
此模组支持通过 JSON 文件进行数据驱动的生物盾牌配置。
示例:
详细说明请查看 wiki。
兼容性
原版盾牌交互保持不变。
- 例如,猪布林(Hoglins)和劫掠兽(Ravagers)仍然使用其原版机制与盾牌进行交互。
Fresh Animations / EMF
- 配合 Fresh Animations 可以显示正确的格挡姿势。
- 在使用盾牌期间,本模组会覆盖 EMF 渲染管线中的实体手臂姿势。
Spartan Weaponry
- 具有
Shield Breach特性的武器可以破坏生物盾牌,类似于原版斧头的效果。
Guard Villagers
- 默认情况下,守卫村民被禁止修改由本模组做出的更改,因此生物行为之间不会发生冲突。
注意事项
盾牌行为的设计围绕原版风格的战斗流程,以僵尸作为计时和节奏的主要参考。
由于不同生物使用不同的原版 AI 结构,因此行为上存在一些差异是正常的。随着时间的推移,可能会添加兼容性改进和边缘情况修复。
如果你遇到盾牌行为异常损坏或不一致的情况,欢迎报告。
支持
如果你想支持我的模组开发工作,包括维护、更新和兼容性工作,可以在这里找到 Patreon:
Mobs Use Shields
This mod allows certain mobs to actively use shields in combat instead of only holding them as equipment.
When a compatible mob equips a shield in its offhand, it gains AI behavior that allows it to raise the shield to block incoming attacks, creating short defensive windows before returning to normal combat.
Features
- Mobs can raise shields to block attacks
- Shielding has a configurable duration and cooldown
- Knockback from blocked hits is reduced
- Humanoid mobs display the correct blocking animation
- Mobs can anticipate certain threats and raise shields preemptively
- Axes can disable mob shields, similar to player shield interactions
- By default, only Husk, Zombie, Vindicator and Wither Skeleton would have a chance to spawn with a shield.
- Users can customize which mobs may spawn with shields, and other behavior parameters.
General Configuration
Several global behaviors can be configured:
-
mobConsumeShieldDurabilityWhether mobs consume shield durability when blocking. -
mobAlwaysAnticipateForces mobs to always use anticipation logic. If set tofalse, anticipation logic only activates when local difficulty × recent HP loss exceeds a random threshold. (Setting this to true can make PvE combat annoying.)
Entity Tag Configuration
You may add entity types that you do not want to be affected by this mod to the mobsuseshields:disable_shield tag. This disables the mod's shield behavior injection for those entities.
This is useful for preventing AI conflicts with mobs that already have their own shield-using goals, such as Guard Villagers.
Data Pack Configuration
This mod supports data-driven mob shield configs through JSON files.
Example:
For detailed explanation, please check wiki.
Compatibility
Vanilla shield interactions remain unchanged.
- For example, Hoglins and Ravagers still interact with shields using their vanilla mechanics.
Fresh Animations / EMF
- Proper blocking poses can be displayed with Fresh Animations.
- This mod overwrites entity arm poses in the EMF render pipeline while shields are being used.
Spartan Weaponry
- Weapons with the
Shield Breachtrait can disable mob shields, similar to vanilla axes.
Guard Villagers
- Guard villagers are blacklisted from modification made by this mod by default, so that the mob behavior does not conflict with each other.
Notes
Shield behavior is designed around vanilla-style combat flow, with Zombies serving as the primary reference for timing and pacing.
Because different mobs use different vanilla AI structures, some variation in behavior is expected. Compatibility improvements and edge-case fixes may still be added over time.
If you encounter mobs with unusually broken or inconsistent shield behavior, feel free to report them.
Support
If you'd like to support my modding work, including maintenance, updates, and compatibility work, Patreon is available here:
下载 Mobs Use Shields
下载 Mobs Use Shields
下载 Mobs Use Shields
下载 Mobs Use Shields
下载 Mobs Use Shields
下载 Mobs Use Shields
下载 Mobs Use Shields
下载 Mobs Use Shields
下载 Mobs Use Shields
下载 Mobs Use Shields
问题 #13
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
评论 0
登录后参与评分
还没有评论,来抢沙发吧