CombatEventFix
CombatEventFix 修复了 BetterCombat 和 EpicFight 与 Forge 事件系统之间的兼容性问题,使自定义战斗实现能够与其他依赖 Forge 事件的模组正确协同工作。
此外,它还通过修复阻止部分技能触发的错误,使 BetterCombat 和 EpicFight 能够与 ParCoolSkill 配合使用(Cleave 技能除外,该技能因设计原因故意不兼容)。
BetterCombat
攻击输入事件
BetterCombat 替换了 Minecraft 原版的攻击输入处理逻辑,这可能导致在其自定义攻击期间无法触发 Forge 的点击输入事件。
CombatEventFix 确保 BetterCombat 的自定义攻击能够正确触发相应的 Forge 输入事件,并尊重该事件的取消结果。这使得其他模组可以通过标准的 Forge 事件系统拦截或取消这些攻击。
EpicFight
暴击事件
EpicFight 用其自定义的暴击实现替换了原版的暴击机制。因此,Forge 的暴击事件无法正确检测通过 EpicFight 执行的暴击攻击。
CombatEventFix 恢复了原版暴击实现的使用,同时保留了 EpicFight 原有的暴击条件。这使得其他模组能够通过 Forge 标准的暴击事件可靠地检测 EpicFight 的暴击。
伤害乘数时机
在 Minecraft 1.21.1 中,EpicFight 在某些伤害乘数应用于伤害减免计算之后才进行应用。原版伤害修饰符通常先于护甲和其他伤害减免计算应用,从而允许增加的伤害部分绕过这些减免。
由于 EpicFight 通过 LivingDamageEvent.Pre 较晚地应用其伤害乘数,额外的伤害无法有效地克服护甲减免,导致实际伤害低于预期。
CombatEventFix 将 EpicFight 伤害乘数的应用调整到伤害计算的适当阶段,恢复了其与护甲及其他伤害减免机制的预期交互效果。
例如,使用钻石剑对全副武装的僵尸执行暴击时:


启用 CombatEventFix 后,EpicFight 的伤害乘数将在计算的正确阶段应用,从而防止这种非预期的伤害损失。
CombatEventFix
CombatEventFix fixes BetterCombat's and EpicFight's compatibility issues with Forge's event system, allowing custom combat implementations to work correctly with other mods that rely on Forge events.
It also enables BetterCombat and EpicFight to work with ParCoolSkill by fixing issues that prevented some skills from being triggered, with the exception of Cleave in EpicFight, which is intentionally incompatible by design.
BetterCombat
Attack Input Events
BetterCombat replaces Minecraft's vanilla attack input handling, which can prevent Forge's click input events from being fired during its custom attacks.
CombatEventFix ensures that BetterCombat's custom attacks properly trigger the corresponding Forge input event and respect the event's cancellation result. This allows other mods to intercept or cancel these attacks through the standard Forge event system.
EpicFight
Critical Hit Events
EpicFight replaces vanilla critical hits with its own custom critical hit implementation. As a result, Forge's critical hit event cannot correctly detect critical attacks performed through EpicFight.
CombatEventFix restores the use of the vanilla critical hit implementation while preserving EpicFight's original critical hit conditions. This allows other mods to reliably detect EpicFight critical hits through Forge's standard critical hit event.
Damage Multiplier Timing
In Minecraft 1.21.1, EpicFight applies certain damage multipliers after damage reduction has already been calculated. Vanilla damage modifiers are generally applied before armor and other damage reduction calculations, allowing increased damage to partially bypass these reductions.
Because EpicFight applies its damage multiplier later through LivingDamageEvent.Pre, the additional damage cannot properly contribute to overcoming armor reduction, resulting in lower-than-expected damage.
CombatEventFix moves the application of EpicFight's damage multiplier to the appropriate stage of the damage calculation, restoring the intended interaction with armor and other damage reduction mechanics.
For example, when performing a critical hit with a Diamond Sword against a fully armored Zombie:


With CombatEventFix, EpicFight's damage multiplier is applied at the correct point in the calculation to prevent this unintended damage loss.
评论 0
登录后参与评分
还没有评论,来抢沙发吧