Skip to main content

Experience

The arc:exp reward type gives the player a specified range of experience points.

Parameters

ParameterTypeRequiredDefaultDescription
minintRequired-No default valueThe minimum amount of experience to give.
maxintRequired-No default valueThe maximum amount of experience to give.

Example

The following example will give the player between 10 and 20 experience points every time they craft an item.

data/my_datapack/arc/xp_for_crafting.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_craft_item",
"rewards": [
{
"type": "arc:exp",
"min": 10,
"max": 20
}
]
}

## Compatible Action Types

<CompatibleActionTypes />