promotional bannermobile promotional banner

speraim

Spear fix: Bedrock knockback on charge, fixed cooldown after raising, client‑side hit, knockback enchant for players.

English Version Spear Combat Fix Mod

This mod fixes the core melee mechanics of spears in Minecraft by addressing premature cooldown triggers, unreliable hit detection, and weak knockback. It transforms the spear into a consistent, responsive, and satisfying close‑quarters weapon.

Key Changes:

Cooldown Triggered on Hit In the vanilla (or common mod) implementation, the spear's cooldown starts as soon as you raise/swing it, often finishing before the attack even lands. This mod delays the cooldown until the spear actually deals damage – ensuring that the cooldown cycle aligns perfectly with the moment of impact, restoring a natural combat rhythm.

Client‑Side Hit Detection (Like Swords) Originally, spear hit detection was handled server‑side, making it vulnerable to latency and causing missed hits despite visual connection. This mod moves melee collision detection to the client, exactly as it works for swords, greatly improving accuracy, especially on multiplayer servers.

Bedrock‑Style Knockback System We ported the knockback physics from Bedrock Edition, so every successful spear hit now applies a more realistic and forceful pushback, factoring in attack direction, momentum, and target mass. This adds tactical depth and dynamic feedback to both PvP and PvE encounters.

Compatibility: This mod works with any spear‑adding mod pack and is fully compatible with vanilla mechanics. No additional dependencies required – just install and enjoy a brand‑new spear‑fighting experience in survival, exploration, or competitive play.

长矛战斗机制修复模组(Spear Combat Fix)

本模组专注于修正《我的世界》中长矛类武器的近战战斗机制,解决原版(或常见模组实现)中因冷却判定过早、命中检测滞后及击退反馈乏力而导致的手感问题,让长矛成为一把真正可靠且富有节奏感的近战武器。

核心改动:

冷却判定延后至命中时 原版长矛在玩家举起/挥动的瞬间即开始计算冷却时间,这导致攻击动画尚未结束、伤害尚未判定时,冷却条已经提前走完,造成连击节奏错乱。本模组将冷却计时推迟至长矛实际击中目标(造成伤害)之后才开始,使冷却周期与攻击反馈完全同步,战斗节奏更为自然流畅。

客户端命中判定(与剑一致) 原长矛的命中检测由服务端主导,易受网络延迟干扰,常出现“视觉上击中但服务器未判定”的情况。本模组将长矛的近战碰撞检测移至客户端执行,与剑的判定机制完全一致,大幅提升命中准确度,尤其在多人服务器中效果显著。

基岩版击退系统移植 引入基岩版(Bedrock Edition)的击退物理逻辑,使长矛每次命中都会根据攻击方向、动量及目标质量产生更真实、更有力度的击退效果。战斗中的位移反馈更加丰富,为 PvP 和 PvE 增添策略深度。

适用说明: 本模组针对任意添加了长矛近战武器的模组环境优化,兼容原版战斗机制,无需额外前置,安装即生效。无论是探索、生存还是竞技,长矛都能带来焕然一新的打击体验.

The speraim Team

profile avatar
  • 1
    Projects
  • 86
    Downloads