set_unbreakable

Makes an item in a specific slot unbreakable while the effect is active.

Categories: inventory

Optional arguments

Key(s)DescriptionTypeDefault
valueWhether to make the item unbreakable (true) or breakable (false).BOOLEANtrue
slotThe equipment slot to target: holder, mainhand, offhand, helmet, chestplate, leggings, or boots.STRINGholder
persist_on_disableWhether the unbreakable state should remain when the effect is removed.BOOLEANtrue

Example

effects:
  - id: set_unbreakable
    args:
      value: true # ← Optional
      slot: mainhand # ← Optional
      persist_on_disable: true # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue