|
|
|
## Description
|
|
|
|
Consume the durability of an item
|
|
|
|
|
|
|
|
|
|
|
|
## Attributes
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
|
| amount | a | Amount to consume | 1 |
|
|
|
|
| breakitem | b, break | Whether the item can break because of this mechanic | true |
|
|
|
|
| breaksound | s | The sound to emit if the item were to break | entity.item.break <!--type:Sound-->|
|
|
|
|
| breakvolume | v | The volume of the break sound | 1.0 |
|
|
|
|
| breakpitch | p | The pitch of the break sound | 1.0 |
|
|
|
|
| equipslot | slot, s | The slot to target | <!--type:EquipSlot--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- ConsumeItemDurability{a=10} @self ~onUse
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
- [x] consumedurability |
|
|
|
\ No newline at end of file |