
Unified Combat 改变了施法、翻滚和攻击的协同工作方式,并提供清晰且可自定义的规则。
翻滚 - 施法交互
- 瞬发取消 — 如果在施法过程中翻滚,法术将被立即取消。你会看到动画停止,服务器也会停止该法术的逻辑处理。
- 施法时锁定翻滚 — 在施法期间阻止你进行翻滚。此功能默认关闭。若要启用它,需要先关闭「瞬发取消」。
- 法术白名单 — 你可以让某些法术(如魔法箭、根须束缚、毒箭)忽略上述规则。这些法术允许你自由翻滚,或者即使翻滚也能继续施法。
- 输入缓冲(翻滚队列) — 如果你在施法的最后 5 个刻(0.25 秒)内按下翻滚键,模组会记住这一操作。当你的法术结束时,会自动执行翻滚。你可以调整这个时间窗口的长度。
战斗交互
- Better Combat 上挑取消 — 翻滚会中断你正在进行的 Better Combat 攻击动作。你的攻击会被重置,以便你能干净利落地闪避。
- 攻击时锁定翻滚
在执行 Better Combat 攻击时,翻滚功能会被暂时锁定,直到攻击完成或被取消。
输入控制与反馈
- 键盘与鼠标翻滚拦截
在以下情况下,翻滚输入会在到达 Combat Roll 之前被拦截:
- 你正在攻击且翻滚锁定处于激活状态,或者
- 你正在施放未列入白名单的法术
这确保了翻滚行为的一致性,并防止意外的闪避。
- 玩家反馈
当翻滚输入被阻止(由于攻击锁定或法术限制)时,玩家会收到:
- 屏幕上显示的解释性消息,说明翻滚为何被阻止
- 用于即时反馈的声音提示
这两者均可通过配置文件单独禁用。
战斗后果
- 法力惩罚(“恐慌翻滚”) — 如果因翻滚而取消法术,你将损失部分法力。损失量取决于你希望承担的法术法力成本比例(百分比由你设定)。
- 防刷屏冷却 — 取消法术后,你不能立即再次施放相同的法术。存在一个短暂的冷却时间。
- 基于派系的反噬 — 取消某些魔法会根据其类型对你造成伤害:
- 火焰法术 → 你着火
- 冰霜法术 → 你减速
- 雷电法术 → 你受到电击
- (你可以开启/关闭此效果并调整触发几率)
视觉与音效效果
- 方向性粒子轨迹 — 当你使用翻滚取消法术时,粒子会朝你翻滚的方向射出(类似于 Blood Step 的效果)。
- 特定派系取消音效 — 不同类型的法术在被取消时会发出不同的声音。
配置 你可以在配置文件中自定义所有内容:
- 启用或禁用攻击时的翻滚锁定
- 切换施法期间的翻滚锁定
- 调整翻滚输入缓冲窗口
- 定义允许使用翻滚取消的法术白名单
- 设置被阻止的翻滚尝试的法力惩罚
- 启用或禁用反噬效果并配置其触发几率
- 独立切换反馈消息和声音
这让你能完全掌控战斗的投入度、响应速度和难度。
鸣谢
- 特别感谢 eyeseyes_real (Discord ID: 714208315911045202),其 KubeJS 脚本启发了本模组的开发。
? 需要服务器吗? 结账时使用代码 Kayn 可在 BisectHosting 享受首月8折优惠。

Please make sure that your Iron's Spellbooks version is up to date!
Unified Combat Changes how spell casting, rolling, and attacking work together with clear rules you can customize.
Roll - Spell Interaction
- Instant Cast Cancel — If you roll while casting a spell, the spell gets cancelled immediately. You'll see the animation stop and the server stops the spell logic.
- Roll Lock While Casting — Blocks you from rolling while you're casting a spell. This is OFF by default. To turn it on, you need to turn OFF Instant Cast Cancel.
- Spell Whitelist — You can make certain spells (like Magic Arrow, Root, Poison Arrow) ignore these rules. Those spells let you roll freely or keep casting even if you roll.
- Input Buffering (Roll Queue) — If you press roll in the last 5 ticks (0.25 seconds) of casting, the mod remembers it. The roll happens automatically right when your spell finishes. You can change how long this window is.
Combat Interaction
- Better Combat Upswing Cancel — Rolling stops any Better Combat attack you're in the middle of. Your attack gets reset so you can dodge cleanly.
- Roll Lock While Attacking
While performing a Better Combat attack, rolling is temporarily locked until the attack completes or is canceled.
Input Control & Feedback
- Keyboard & Mouse Roll Interception
Roll input is intercepted before reaching Combat Roll when:
- You are attacking and roll lock is active, or
- You are casting a spell that is not whitelisted
This ensures roll behavior is handled consistently and prevents unintended dodges.
- Player Feedback
When a roll input is blocked (due to attack lock or spell restrictions), the player receives:
- An on-screen message explaining why the roll was blocked
- A sound cue for immediate feedback
Both can be disabled via the config.
Combat Consequences
- Mana Penalty ("Panic Roll") — If you cancel a spell by rolling, you lose some mana. The amount depends on how much of the spell's mana cost you want to charge (you set the percentage).
- Anti-Spam Cooldown — After cancelling a spell, you can't cast that same spell again immediately. There's a short cooldown.
- School-Based Backlash — Cancelling certain magic can hurt you based on what type of spell it was:
- Fire spells → You catch on fire
- Ice spells → You get slowed
- Lightning spells → You get shocked
- (You can turn this on/off and adjust the chance)
Visual & Audio Effects
- Directional Particle Trails — When you roll-cancel a spell, particles shoot out in the direction you're rolling (like the Blood Step effect).
- School-Specific Cancel Sounds — Different spell types make different sounds when you cancel them.
Configuration You can customize everything in the config file:
- Enable or disable roll locking while attacking
- Toggle roll lock during spell casting
- Adjust the roll input buffer window
- Define whitelisted spells that can roll-cancel
- Set mana penalties for blocked roll attempts
- Enable or disable backlash effects and configure their chance
- Toggle feedback messages and sounds independently
This allows full control over combat commitment, responsiveness, and difficulty.
Credits
- Big thanks to eyeseyes_real (Discord ID: 714208315911045202) for their KubeJS scripts that inspired this mod.
? Need a server? Use code Kayn at checkout for 25% off your first month with BisectHosting.
评论 0
登录后参与评分
还没有评论,来抢沙发吧