Mechanic: DealCustomDurability
Modifies the held item durability.
Attributes
Attribute | Aliases | Description | Default |
---|---|---|---|
a | Adds/Subtracts durability |
Examples
A positive number will deal damage, a negative number will heal it. Note: Only works for custom durability.
MyItem:
Id: golden_sword
Display: 'Excalibur'
CustomDurability:
Durability: 20
Lore:
- 'This is line 1'
- 'This is line 2'
Skills:
- dealcustomdurability{a=2} @Self ~onUse # damages an item by 2 durability.
- dealcustomdurability{a=-2} @Self ~onSwing # repairs 2 durability on an item.