apply_random_enchant

Categories: inventory

Optional arguments

Key(s)DescriptionTypeDefault
typesIf not empty, only enchantments belonging to these enchantment types can be chosen.STRING_LIST[]
raritiesIf not empty, only enchantments with these rarities can be chosen.STRING_LIST[]
enchantsIf not empty, only enchantments with these IDs can be chosen.ENCHANTMENT_LIST[]
allow_unsafe BOOLEANfalse

Trigger parameters required

  • PLAYER

  • ITEM

Example

effects:
  - id: apply_random_enchant
    args:
      types: 
        - <value> # ← Optional
      rarities: 
        - <value> # ← Optional
      enchants: <value> # ← Optional
      allow_unsafe: true # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue