Parry — Java 版
基于时机的战斗格挡。谁先击中,谁就获得格挡!
这是 Bedrock Parry 模组在 Java 版的忠实移植。无需盾牌——任何物品(或空手)均可使用。只需让你的攻击时间与敌人的攻击时间相匹配即可。
工作原理
如果你和敌人在 0.4 秒(8 刻)的时间窗口内互相击中,先击中的人将获得格挡效果。后击中者将受到惩罚:
❌ 不受伤害
? 陷入眩晕状态(缓慢 II + 虚弱 I,持续 3 秒)
? 被击退,远离格挡成功者
✨ 播放格挡音效并产生暴击粒子效果
? 胜利者的格挡计数增加
此机制双向生效:
你击中敌人,然后它击中你 → 你格挡(敌人被眩晕)
敌人击中你,然后你击中它 → 它格挡(你被眩晕)
无需盾牌。无需特定物品。拳头、剑、斧头——任何武器均可使用。
/parry 开启或关闭你自己的格挡功能
/paritype 显示你的格挡统计数据(计数、状态、窗口期、眩晕信息)
所有玩家均可使用这两个命令——无需作弊模式或 OP 权限。
安装
Minecraft Java 版 26.2(最新稳定版)
Fabric 加载器 0.19.3
Fabric API 0.156.0+26.2(必需依赖项)
Java SE / JDK 25
步骤
为 Minecraft 26.2 安装 Fabric Loader
下载 Fabric API 并将其放入 mods/ 文件夹
下载 ciservermodding-parry-1.0.0.jar 并将其放入 mods/ 文件夹
启动游戏并加入任意世界或服务器
服务器安装
将 Fabric API jar 文件和 Parry jar 文件都放入服务器的 mods/ 文件夹中。连接到服务器的客户端无需安装该模组(所有逻辑均在服务端运行),但如果愿意也可以自行安装。
兼容性
✅ 仅支持 Fabric(不支持 Forge/NeoForge)
✅ 兼容客户端和服务端(环境:"*")——可安装在任一或两端
✅ 所有格挡逻辑均在服务端运行(纯客户端环境下为安全无操作)
✅ 与所有其他 Fabric 模组兼容
✅ 无需实验性功能或 Beta API
✅ 无 Mixin——仅使用 Fabric API 事件
✅ 无自定义物品、方块或实体(纯逻辑型模组)
技术细节
格挡窗口:8 刻(在 20 TPS 下相当于 0.4 秒)
眩晕效果:缓慢 II + 虚弱 I,持续 60 刻(3 秒)
击退力度:水平 1.8 + 垂直 0.6(远离格挡成功者)
开关控制:使用原版实体标签(parry_disabled)——通过 NBT 持久化存储,可通过 /tag 列表查看
致谢
作者:CIServerModding
原版 Bedrock 模组:Parry (Bedrock)
Java 版移植:CIServerModding + AI
许可证
© CIServerModding. 保留所有权利。
Parry — Java Edition
Timing-based combat parry. Whoever hits FIRST gets the parry!
A faithful port of the Bedrock Parry mod to Java Edition. No shield required — any item (or no item) works. Just time your attack to match the enemy's.
How It Works
If you and an enemy hit each other within a 0.4-second window (8 ticks), the person who hit first gets the parry. The second hitter is punished:
❌ Takes zero damage
? Gets stunned (Slowness II + Weakness I for 3 seconds)
? Gets knocked back away from the parry winner
✨ A parry sound + critical-hit particle burst plays
? The winner's parry counter increments
This works in both directions:
You hit an enemy, then it hits you → YOU parry (the enemy gets stunned)
An enemy hits you, then you hit it → IT parries (you get stunned)
No shield needed. No specific item required. Fist, sword, axe — anything works.
/parry Toggle parry on/off for yourself
/paritype Show your parry stats (count, status, window, stun info)
Both commands are available to all players — no cheats or OP required.
Installation
Minecraft Java Edition 26.2 (latest stable)
Fabric Loader 0.19.3
Fabric API 0.156.0+26.2 (required dependency)
Java SE / JDK 25
Steps
Install Fabric Loader for Minecraft 26.2
Download Fabric API and place it in your mods/ folder
Download ciservermodding-parry-1.0.0.jar and place it in your mods/ folder
Launch the game and join any world or server
Server Installation
Place both the Fabric API jar and the Parry jar in the server's mods/ folder. Clients connecting to the server do not need the mod installed (all logic runs server-side), but can install it if they want.
Compatibility
✅ Fabric (not Forge/NeoForge)
✅ Client + Server (environment: "*") — install on either or both
✅ All parry logic runs server-side (safe no-op on a pure client)
✅ Works with all other Fabric mods
✅ No experiments or beta APIs
✅ No mixins — uses only Fabric API events
✅ No custom items, blocks, or entities (pure logic mod)
Technical Details
Parry window: 8 ticks (0.4 seconds at 20 TPS)
Stun: Slowness II + Weakness I, 60 ticks (3 seconds)
Knockback: 1.8 horizontal + 0.6 vertical (away from the parry winner)
Toggle: Uses vanilla entity tags (parry_disabled) — persists via NBT, visible to /tag list
Credits
Author: CIServerModding
Original Bedrock mod: Parry (Bedrock)
Java port: CIServerModding + AI
License
© CIServerModding. All rights reserved.
评论 0
登录后参与评分
还没有评论,来抢沙发吧