Changes
Page history
Added Deal Custom Durability
authored
Dec 22, 2022
by
Luis Antonio H. Larrosa
Show whitespace changes
Inline
Side-by-side
Skills/Mechanics/DealCustomDurability.md
0 → 100644
View page @
aa432699
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.
```
yaml
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.
```
\ No newline at end of file