Update DealCustomDurability authored by Lxlp's avatar Lxlp
## Description ## Description
Modifies the custom durability of the held item. Modifies the custom durability of the held item.
## Attributes ## Attributes
| Attribute | Aliases | Description | Default | | Attribute | Aliases | Description | Default |
|-----------|---------|---------------------------|---------| |-----------|---------|---------------------------|---------|
| amount | a | Adds/Subtracts durability | 1 | | 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.
...@@ -24,6 +26,6 @@ MyItem: ...@@ -24,6 +26,6 @@ MyItem:
- dealcustomdurability{a=-2} @Self ~onSwing # repairs 2 durability on an item. - dealcustomdurability{a=-2} @Self ~onSwing # repairs 2 durability on an item.
``` ```
## Aliases ## Aliases
- [x] dealdura - [x] customdura
- [x] customdura \ No newline at end of file
\ No newline at end of file