原版剑格挡
这是一个非常简单的数据包/Paper 插件,恢复了旧版的剑格挡机制,允许你使用剑进行格挡以减少所受伤害。
最棒的部分在于:它仅适用于服务端,因此玩家无需在客户端安装任何模组——只需将其添加到服务器即可让所有人受益!
特性:
- 使用剑格挡时,受到的伤害降低 50%
- 格挡时玩家移动速度减慢
- 适用于所有剑,无论其获取方式如何
- 兼容大多数模组添加的剑
注意事项:
- 当使用数据包/模组版本(1.21.5+)时,即使移除该数据包/模组,剑格挡功能仍会继续生效!
工作原理
本质上,该插件使用了最近新增的组件“consumable”(可消耗品),让 Minecraft 误以为你可以吃剑!
此举用于启用名为“block”(格挡)的动作动画,从而呈现出你在格挡的视觉效果。
随后,插件阻止了你真正“吃掉”你的剑(不客气!),并在检测到你在格挡(从 Minecraft 的角度来看是“食用”)剑时减少伤害。

注意:
尽管插件版本理论上可以安装在 1.21.2 及更高版本的服务器上,但格挡动画仅在 1.21.4(确切地说是 24w44a)及更高版本的客户端上才能正确显示。
Vanilla Sword Blocking
This is a very simple datapack/paper plugin that brings back the old sword blocking mechanics, allowing you to block with your sword to reduce the damage you take.
The best part about it: It's server-only, so players don't even have to install a mod on their client for this - just add it to the server and it works for everyone!
Features:
- damage is reduced by 50% while blocking with swords
- player is slowed down while blocking
- works with all swords, no matter how they were obtained
- works with most modded swords
Caveat:
- When using the datapack/mod variant (1.21.5+), sword blocking will keep working even when you remove the datapack/mod!
How it works
Essentialy, this plugin uses the recently added component called "consumable", to make Minecraft think you can eat swords!
This is used to enable an animation called "block", so it looks like you're blocking.
Then, the plugin prevents you from actually eating your sword (you're welcome!), and instead reduces damage when it detects you are blocking ("eating", from minecraft's perspective) your sword.

Note:
While the plugin variant can technichally be installed on any server version 1.21.2 and later, the blocking will only be displayed correctly by clients on version 1.21.4 (24w44a, to be exact) and later.
评论 0
登录后参与评分
还没有评论,来抢沙发吧