Auto Defend
Auto Defend 为实体引入了一个新资源:耐力(Stamina)。默认情况下,所有实体的耐力值为 20,但可以通过 max_stamina 属性进行修改。受到攻击的实体将不再损失生命值,而是_自动格挡或闪避攻击_,将受到的伤害转移到耐力上。实现自动防御的条件相当可定制:
- 默认情况下,只有玩家可以进行自动防御。这可以在配置文件中修改。
- 位于
#auto_defend:no_auto_defense 实体类型标签中的实体(默认包括远程怪物和体型庞大、高血量的坦克型怪物)无法进行自动防御。
- 默认情况下,非直接来自活体实体的伤害(主要是投射物和环境影响)无法被自动防御。属于
#auto_defend:undefendable 伤害类型标签的伤害也无法被自动防御——这包括爆炸和音爆,默认情况下均在此列。
- 如果伤害远高于防御者的最大耐力值,他们将进入“破防”(overbroken)状态,耐力值归零并承受全额攻击。破防条件是可配置的,包括需要多少伤害才能导致破防,以及破防判定是基于当前耐力还是最大耐力。
- 如果实体没有朝向伤害来源的一定角度范围内(由其
defend_angle 属性定义),它们将无法自动防御攻击。
- 拥有
defend_chance 属性且值低于 1.0 的实体有随机几率无法成功防御。defend_chance 默认为 1.0,因此玩家无需担心因随机数生成(RNG)而损失生命值。
耐力
对耐力造成的伤害是原始伤害,在计算护甲、保护附魔或抗性药水等减伤之前就已确定。然而,endurance 属性可以减少耐力伤害。
经过足够长的时间后,耐力会自然恢复。对于玩家而言,这会消耗饥饿值;当饥饿值低于一半时,玩家无法恢复耐力。有关耐力恢复的参数均可配置。
尽管耐力没有用户界面元素,但耐力低于一半的实体将会 visibly 出汗。实体出汗的速度越快,其耐力越低。此外,当实体的耐力因格挡或闪避被耗尽至 0 时,视觉效果和音效会发生变化以指示这一状态。如果你希望让玩家猜测自己还能防御多久,这一变化也是可配置的。
兼容性
Auto Defend 可能与那些添加了自己伤害减免方法的模组无法正常兼容。你可能会遇到的主要问题是自动防御优先于模组的伤害减免生效。无法保证哪些模组能正常工作或不能工作;最好的办法是亲自尝试看看。我已确认以下模组功能正常:
并确认与以下模组不兼容:
注意事项
本模组高度依赖属性系统。强烈建议整合包开发者以及任何想要更改功能的人使用 AttributeSetter。
我只能保证在 1.21.1 版本上的功能正常,但你可以自由尝试它在后续 1.21.x 版本上是否也能运行。
那么,为什么会有这个模组?**(警告:一大段文字)**
在 Minecraft 中,相对于伤害值来说,实体的生命值显得非常少。这意味着微小的伤害差异没有太多累积的时间,所以关键只在于特定的“破防点”。例如,石剑(5 点伤害)和铁剑(6 点伤害),如果我们忽略暴击,两者都需要 4 次攻击才能击杀一个 20 点生命值的目标。
当结合一些武器模组时,这个问题会更加突出,因为不同武器类型之间的伤害差异可能相当小。
提高生命值数值是一种解决这个问题的方法。面对一个 100 点生命值的对手,同样的 5 点伤害石剑和 6 点伤害铁剑现在分别需要 20 次和 17 次攻击才能将其击杀;这是一个虽小但真实存在的差异。默认配置并没有真正达到这种效果,但它们旨在作为基线,对游戏性改变较小。
然而,我个人对增加生命值有些抵触:在某些风格的整合包中,这种做法感觉有点愚蠢。伤害差异的重要性与战斗的致命感是相悖的。
Auto Defend 通过让绝大多数攻击实际上并不“伤害”你来解决这个问题:你避开了它们,但随着时间推移变得越来越疲惫,直到被决定性的一击击败。
Auto Defend
Auto Defend gives entities a new resource: Stamina, which is by default 20 for all entities but can be changed with the max_stamina attribute. Instead of losing health, hit entities will automatically parry or dodge attacks, redirecting any damage taken to their stamina instead. The conditions to accomplish auto defense are fairly customizable:
- By default, only players can auto defend. This can be altered in the config.
- Entities in the
#auto_defend:no_auto_defense entity type tag (by default ranged mobs and large, tanky mobs) cannot auto defend.
- By default, damage not directly from a living entity source (mainly projectiles and environmental damage) cannot be auto defended against. Damage in the
#auto_defend:undefendable damage type tag cannot be auto defended, either - this includes explosions and sonic booms by default.
- If the damage is substantially higher than the defender's max stamina, they will be "overbroken", setting their stamina to 0 and causing them to take the attack in full. Overbreak conditions are configurable, including how much damage needs to be done to overbreak and whether overbreaks are measured against current or maximum stamina.
- If the entity is not looking within a certain angle of the damage source (defined by their
defend_angle attribute), they will not auto defend attacks.
- Entities with a
defend_chance attribute lower than 1.0 have a random chance to fail to defend. defend_chance is set to 1.0 by default, so players don't need to worry about taking health damage because of RNG.
Stamina
Damage dealt to stamina is raw damage, before mitigation from anything like armor, Protection, or Resistance. However, the endurance attribute reduces stamina damage.
Stamina naturally regenerates after enough time has passed since you were last hit. For players, this consumes hunger; players cannot regenerate stamina when below half hunger. Values pertaining to stamina regeneration are configurable.
Although stamina has no UI elements, entities below half stamina will visibly sweat. The more rapidly an entity sweats, the lower their stamina. Additionally, when an entity's stamina is taken to 0 by a parry or dodge, the visual and audio effects will change to indicate this. This change is configurable, if you'd rather keep players guessing about exactly how long they can keep defending.
Compatibility
Auto Defend may not function properly with mods that add their own methods of negating damage. The main issue you might find is auto defense taking priority over the modded damage negation. There's no guarantee on what mods will or will not work; your best bet is to try it and see. I've personally confirmed proper functionality with:
and confirmed incompatibility with:
- Shield & Parry (auto defense takes priority over parrying. Since the mod is closed source, I can't fix this.)
Notices
This mod is heavily attribute driven. Use of AttributeSetter is highly recommended for pack developers and anyone that wants to change functionality.
I can only promise functionality on 1.21.1, but feel free to try it and see if it works on later 1.21.x releases.
So, why does this mod even exist? **(WARNING: BIG OL' TEXT WALL)**
In Minecraft, entity health is noticeably small relative to damage. This means that small damage differences don't have much time to compound, so all that matters is specific break-points. For instance, stone swords (5 damage) and iron swords (6 damage), if we ignore crits, both take 4 hits to kill a 20-damage target.
This is an issue when combined with some weapon mods, where damage differences between weapon types can be rather small.
Increasing HP values is one way to get around this. Against a 100-HP target, the same 5-damage stone sword and 6-damage iron sword now take 20 and 17 hits to kill respectively; a small but real difference. The default configs don't really achieve this, but they're meant to be less game-altering as a baseline.
However, I have a personal issue with inflating HP: it feels somewhat stupid in certain flavors of modpack. Damage differences mattering is in contrast with combat feeling lethal.
Auto Defend solves this issue by making the vast majority of hits not actually HURT you: you avoid them, but become more and more exhausted over time until you are finished off by a decisive strike.
评论 0
登录后参与评分
还没有评论,来抢沙发吧