apply_random_scroll
Inscribes the found item with a randomly chosen scroll that it can be inscribed with.
Categories: inventory
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
scrolls | The ids of the scrolls to choose from. If empty, all registered scrolls are considered. | STRING_LIST | |
type | If specified, only scrolls of this scroll type are considered. | STRING | |
allow_unsafe | If true, scrolls that the item does not meet the inscription requirements for can still be chosen. | BOOLEAN | false |
Example
effects:
- id: apply_random_scroll
args:
scrolls:
- <value> # ← Optional
type: <value> # ← Optional
allow_unsafe: true # ← Optional
Behaviour
| Setting | Value |
|---|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |
| Permanent | false |