Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Drop Item

The arc:drop_item reward type drops an item at the location of the action (e.g., where a block was broken).

Parameters

ParameterTypeRequiredDefaultDescription
itemItemStackRequired-No default valueThe item to drop.

Example

The following example drops a Golden Apple when breaking leaves.

data/my_datapack/arc/apple_drop.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"conditions": [
{
"type": "arc:blocks",
"blocks": ["#minecraft:leaves"]
}
],
"rewards": [
{
"type": "arc:drop_item",
"item": {
"id": "minecraft:golden_apple",
"count": 1
}
}
]
}

Compatible Action Types