Skip to main content

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

Item

The arc:item reward type gives an item to the player.

Parameters

ParameterTypeRequiredDefaultDescription
itemItemStackRequired-No default valueThe item to give.

Example

The following example gives the player 5 Diamonds.

data/my_datapack/arc/give_diamonds.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_advancement",
"conditions": [
{
"type": "arc:advancement",
"id": "minecraft:story/mine_diamond"
}
],
"rewards": [
{
"type": "arc:item",
"item": {
"id": "minecraft:diamond",
"count": 5
}
}
]
}

Compatible Action Types