Skip to main content

Drop Item

The arc:on_drop_item action type is triggered when a player drops an item.

Action Data

When this action is triggered, the following action data is made available to be used by conditions and rewards:

Action Data TypeDescription
arc:itemRefers to a single item type without stack information.
arc:item_stackRepresents a stack of items, including item type and quantity.

Example

The following example will kill the dropped stone item every time a player drops a stone item.

data/my_datapack/arc/kill_dropped_stone.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_drop_item",
"conditions": [
{
"type": "arc:item",
"item": {
"id": "minecraft:stone"
}
}
],
"rewards": [
{
"type": "arc:command",
"command": "execute as @p[name=%player%] at @s run kill @e[type=item,sort=nearest,limit=1,nbt={Item:{id:\"minecraft:stone\"}}]"
}
]
}

Compatible Condition Types

The following condition types can be used with this action type:

Compatible Reward Types

The following reward types can be used with this action type: