drop_weighted_random_item
Drops one item chosen from a weighted list at the trigger location.
Categories: inventory
Required arguments
| Key(s) | Description | Type |
|---|
items | A list of weighted item groups. Each entry has a weight and an items list. | DYNAMIC |
items entries
| Key | Description | Type | Required |
|---|
items | The items in this group, in eco item lookup format. | STRING_LIST | yes |
weight | The relative weight of this group when choosing what to drop. | DOUBLE | yes |
Trigger parameters required
Example
effects:
- id: drop_weighted_random_item
args:
items:
- items: <value>
weight: <value>
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |