Xires87 / SwordParry

https://www.curseforge.com/minecraft/mc-mods/sword-parry
MIT License
1 stars 2 forks source link
fabric-mod java minecraft-mod

Fryc's Parry (aka Sword Parry)

Adds parry mechanics and allows blocking with items other than shield

CurseForge


Datapacks:

Modifying pool of items that can parry:

(remember that some directories changed with 1.21, for example items is now item)

Modifying parry attributes:

Creating parry attributes:

If existing parry attributes don't satisfy you, in data/frycparry/parry_attributes/ create json file containing:

{
  "parryTicks": 0,
  "meleeDamageTakenAfterBlock": 0.00,
  "projectileDamageTakenAfterBlock": 0.00,
  "cooldownAfterParryAction": 0,
  "cooldownAfterInterruptingBlockAction": 0,
  "maxUseTime": 0,
  "shouldStopUsingItemAfterBlockOrParry": true,
  "knockbackAfterParryAction": 0.0,
  "slownessAfterParryAction": 0,
  "slownessAmplifierAfterParryAction": 1,
  "weaknessAfterParryAction": 0,
  "weaknessAmplifierAfterParryAction": 1,
  "disarmedAfterParryAction": 0
}

Change the values to meet your needs. Name of your file will be used to access them.

Note:

Applying parry attributes to selected items:

In data/frycparry/parry_items/ create json file containing:

{
  "parryAttributes": "NAME_OF_PARRY_ATTRIBUTES_FILE_WITHOUT_EXTENSION",
  "items": [
    "some_mod_id:some_item",
    "some_mod_id:another_item"
  ]
}

parryAttributes is name of file from data/frycparry/parry_attributes/ WITHOUT .json

Inside items add items for which selected parry attributes will be applied

Example:

{
  "parryAttributes": "my_parry_attributes",
  "items": [
    "minecraft:diamond_sword",
    "minecraft:diamond_pickaxe",
    "minecraft:stick",
    "minecraft:dirt"
  ]
}

Note: