Blocking Overhaul
通过添加弹反机制并将多项机制改为基于实体属性驱动,对格挡攻击进行了全面重构。
在即将受到攻击时开始格挡,可以触发弹反。该时间窗口长度(以刻为单位)由 "blockingoverhaul:parry_window" 实体属性决定。
格挡/弹反时的击退变化
格挡或弹反攻击不再对攻击者施加硬编码的击退量。
相反,击退变得更加动态,击退量和受影响的实体(攻击者或防御者)由多个因素决定:
- 防御者的 "blockingoverhaul:block_force" 实体属性
- 防御者的 "blockingoverhaul:parry_multiplier" 实体属性。此乘数可通过服务器配置和/或用于格挡的物品禁用。
- 防御者的 "minecraft:attack_knockback" 实体属性
- "additional_attack_knockback",默认为 0。其他使用 Blocking Overhaul 的模组(如 Overhauled Damage)可使用此值来修改计算
- "total_applied_blocking_knockback_multiplier",这是一个服务器配置选项
((defender_block_force * defender_parry_multiplier) - (attacker_attack_knockback + additional_attack_knockback)) * total_applied_blocking_knockback_multiplier
如果计算结果为负数,则击退应用于防御者。如果为正数,则击退应用于攻击者。
被阻挡伤害量的变化
弹反还可以将 "blockingoverhaul:parry_multiplier" 实体属性确定的乘数应用于被阻挡的伤害量。这可以通过服务器配置和/或用于格挡的物品禁用。
技术细节
要使弹反生效,物品堆栈上必须存在此数据组件。
弹反有以下几个条件:
- 用于格挡的物品必须具有 "blockingoverhaul:parries_attacks" 数据组件
- 目前尚无简单方法默认将此组件应用于现有物品(如原版盾牌)
- 建议使用第三方模组如 "Default Components"
- 尝试弹反的实体(类型)必须位于 "blockingoverhaul:can_parry" 实体类型标签中
Stamina Attributes 集成
Blocking Overhaul 已集成 Stamina Attributes,弹反攻击与普通格挡有不同的耐力消耗,由 "blockingoverhaul:parry_stamina_cost" 实体属性决定。
Blocking Overhaul
Overhauls blocking attacks by adding a parry mechanic and changing several mechanics to be entity attribute - driven.
When blocking is started just before a hit, the attack is parried. The length (in ticks) of that time window is determined by the "blockingoverhaul:parry_window" entity attribute.
Changes to knockback on blocking/parrying
Blocking/parrying an attack no longer applies a hardcoded amount of knockback to the attacker.
Instead, the knockback is more dynamic, where knockback amount and affected entity (attacker or defender) are determined by several factors.
- "blockingoverhaul:block_force" entity attribute of the defender
- "blockingoverhaul:parry_multiplier" entity attribute of the defender. This multiplier can be disabled by the server config and/or the item used for blocking.
- "minecraft:attack_knockback" entity attribute of the defender
- an "additional_attack_knockback", which is 0 by default. Other mods that use Blocking Overhaul (like Overhauled Damage) can use this value to modify the calculation
- a "total_applied_blocking_knockback_multiplier", which is a server config option
((defender_block_force * defender_parry_multiplier) - (attacker_attack_knockback + additional_attack_knockback)) * total_applied_blocking_knockback_multiplier
If the result of the calculation is negative, the knockback is applied to the defender. If it's positive, the knockback is applied to the attacker.
Changes to blocked damage amount
Parrying can also apply the multiplier determined by the "blockingoverhaul:parry_multiplier" entity attribute to the amount of blocked damage. This can be disabled by the server config and/or the item used for blocking.
Technical details
This data component needs to be present on an item stack for parrying to work.
Parrying has several conditions:
- the item used for blocking has to have the "blockingoverhaul:parries_attacks" data component
- there is currently no easy way to apply this component to existing items (like the vanilla shield) by default
- using third-party mods like "Default Components" is recommended
- the entity (type) that tries to parry has to be in the "blockingoverhaul:can_parry" entity type tag
Stamina Attributes integration
Blocking Overhaul has integration for Stamina Attributes, parrying an attack has a different stamina cost than regular blocking, determined by the "blockingoverhaul:parry_stamina_cost" entity attribute.
评论 0
登录后参与评分
还没有评论,来抢沙发吧