add_enchant

Adds an enchantment to the triggering item.

Categories: inventory

Required arguments

Key(s)DescriptionType
enchantThe enchantment to add, e.g. sharpness.ENCHANTMENT
levelThe level of the enchantment to add. Supports expressions.EXPRESSION

Trigger parameters required

  • ITEM

Example

effects:
  - id: add_enchant
    args:
      enchant: <value>
      level: %level% + 1

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue