apply_random_enchant
Categories: inventory
Optional arguments
| Key(s) | Description | Type | Default |
|---|
types | If not empty, only enchantments belonging to these enchantment types can be chosen. | STRING_LIST | [] |
rarities | If not empty, only enchantments with these rarities can be chosen. | STRING_LIST | [] |
enchants | If not empty, only enchantments with these IDs can be chosen. | ENCHANTMENT_LIST | [] |
allow_unsafe | | BOOLEAN | false |
Trigger parameters required
Example
effects:
- id: apply_random_enchant
args:
types:
- <value> # ← Optional
rarities:
- <value> # ← Optional
enchants: <value> # ← Optional
allow_unsafe: true # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |