Triggers
trigger/item_pickup
Item Pickup Trigger
Fires when a player picks up an item from the ground.
Note: Cancel the event using Event Cancel to prevent the player from picking up the item. The material filter is case-insensitive.
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Fires when an item is picked up. |
player |
player | The player who picked up the item. |
item |
item_stack | The ItemStack that was picked up. |
material |
string | Material name of the picked-up item. |
amount |
number | Amount picked up. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
material |
string | "" |
Only fire for this material (empty = any). Use uppercase e.g. DIAMOND. |
Examples
Reward a player for picking up a diamond
Give a player bonus XP when they pick up a diamond.
- Item Pickup Trigger (material=DIAMOND) → exec → Player Set XP
- Connect player output to Player Set XP