set_unbreakable
Makes an item in a specific slot unbreakable while the effect is active.
Categories: inventory
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
value | Whether to make the item unbreakable (true) or breakable (false). | BOOLEAN | true |
slot | The equipment slot to target: holder, mainhand, offhand, helmet, chestplate, leggings, or boots. | STRING | holder |
persist_on_disable | Whether the unbreakable state should remain when the effect is removed. | BOOLEAN | true |
Example
effects:
- id: set_unbreakable
args:
value: true # ← Optional
slot: mainhand # ← Optional
persist_on_disable: true # ← Optional
Behaviour
| Setting | Value |
|---|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |