Skip to main content

Item

The arc:item reward type gives an item directly to the player's inventory.

Parameters

ParameterTypeRequiredDefaultDescription
itemItemRequired-No default valueThe item to give.
amountintOptional1The amount of the item to give.

Example

The following example will give the player an apple every time they break a dirt block.

data/my_datapack/arc/apple_from_dirt.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"conditions": [
{
"type": "arc:block",
"block": "minecraft:dirt"
}
],
"rewards": [
{
"type": "arc:item",
"item": {
"id": "minecraft:apple"
}
}
]
}

## Compatible Action Types

<CompatibleActionTypes />