added aliases & changed layout authored by Lxlp's avatar Lxlp
Mechanic: DealCustomDurability ## Description
================ Modifies the custom durability of the held item.
Modifies the held item durability. ## Attributes
Attributes
----------
| Attribute | Aliases | Description | Default | | Attribute | Aliases | Description | Default |
|:---------:|:-------:|:-------------------------:|:-------:| |-----------|---------|---------------------------|---------|
| a | | Adds/Subtracts durability | | | amount | a | Adds/Subtracts durability | 1 |
Examples ## Examples
--------
A positive number will deal damage, a negative number will heal it. A positive number will deal damage, a negative number will heal it.
**Note:** Only works for custom durability. **Note:** Only works for custom durability.
...@@ -26,4 +22,8 @@ MyItem: ...@@ -26,4 +22,8 @@ MyItem:
Skills: Skills:
- dealcustomdurability{a=2} @Self ~onUse # damages an item by 2 durability. - dealcustomdurability{a=2} @Self ~onUse # damages an item by 2 durability.
- dealcustomdurability{a=-2} @Self ~onSwing # repairs 2 durability on an item. - dealcustomdurability{a=-2} @Self ~onSwing # repairs 2 durability on an item.
``` ```
\ No newline at end of file
## Aliases
- [x] dealdura
- [x] customdura
\ No newline at end of file