本模组仅适用于 Fabric,不会移植到 Forge。如果你想将其移植到 Forge,请自行 Fork 该项目。
本模组不会向后移植至旧版本。
Parry
概述
Parry 是一款 Fabric 模组,将 Minecraft 1.9 之前版本的剑格挡(亦称剑招架)机制带入了现代版 Minecraft。

进行格挡时,手持剑按住右键即可。此时你只会受到 50% 的伤害。
该数值可在 ".minecraft/config/parry.json" 文件中配置:
{
"default_multiplier": 0.6,
"consume_animation": false,
"prioritize_shield": true,
"overrides": [
{
"item": "minecraft:iron_sword",
"multiplier": 2.5
},
{
"item": "minecraft:gold_sword",
"multiplier": 10.0
}
]
}
此示例表明,玩家在格挡时将承受 60% 的伤害。此外还包含两个例外情况:铁剑将允许玩家造成 250% 的伤害,而金剑则允许造成 1000% 的伤害。同时,格挡动画将变为即时生效,而非原有的快速“晃动”动画。最后,在此配置示例中盾牌优先,这意味着如果你的副手持有盾牌,它将进行阻挡而不是你的剑。
默认情况下,没有覆盖项,默认伤害乘数为 0.5,消耗动画开启,且盾牌不优先。
以下信息在后续更新中可能会变得多余。
要为你的添加剑的模组添加与此模组的兼容性:
安装此模组后,所有剑类物品都将具备格挡能力。但它们不会显示第一人称模型的更改。要添加此模型更改:
创建一个名为 “parrying” 的模型文件,其内容应与原始剑模型文件完全相同,但需将父级从 “item/handheld” 更改为 “item/handheld_parry”。
在你的剑模型文件中添加覆盖项。
"overrides": [{"predicate": {"parrying": 1},"model": "modid:item/my_sword_parry"}]
你可以将此模组加入你的整合包中。
This mod is for FABRIC, it's not going to be ported to Forge. If you want to port this to Forge, go ahead and fork the project.
This mod will not be backported to old versions.
Parry
Overview
Parry is a Fabric mod that brings sword parrying (AKA sword blocking) to modern Minecraft from pre-1.9 versions.

To parry, hold right-click with a sword. Doing so will only let you take 50% of the damage inflicted.
This value can be configured in the ".minecraft/config/parry.json" file:
{
"default_multiplier": 0.6,
"consume_animation": false,
"prioritize_shield": true,
"overrides": [
{
"item": "minecraft:iron_sword",
"multiplier": 2.5
},
{
"item": "minecraft:gold_sword",
"multiplier": 10.0
}
]
}
This example states that the player should take 60% of the inflicted damage when parrying. It also presents two exceptions: Iron swords will instead allow the player to inflict 250% the damage inflicted, and gold swords will allow 1000%. Along with this, the parry animation will be instant, instead of having the quick "bob" animation. Lastly, shields are prioritized in this config example, meaning that your shield will block instead of your sword if it's in your offhand.
By default, there are no overrides, the default damage multiplier is 0.5, the consume animation is on, and shields are not prioritized.
The information below is likely going to become redundant in a later update.
To add compatibility with this mod and your sword-adding mod:
All sword items will have the ability to parry with this mod installed. However, they will not display a first-person model change. To add this model change:
Create a "parrying" model file, which should be identical to your original sword model file, but with the parent changed from "item/handheld" to "item/handheld_parry".
Add an override to your sword model file.
"overrides": [{"predicate": {"parrying": 1},"model": "modid:item/my_sword_parry"}]
You may add this mod to your modpack.
评论 0
登录后参与评分
还没有评论,来抢沙发吧