drop_item_slot
Drops items from a specific inventory slot.
Categories: inventory
Required arguments
| Key(s) | Description | Type |
|---|
slot | The inventory slot to drop items from, e.g. mainhand or slot_0. | STRING |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
amount | How many items to drop. If omitted, drops the entire stack. | EXPRESSION | |
Trigger parameters required
Example
effects:
- id: drop_item_slot
args:
slot: mainhand
amount: <expression> # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |