Experience
The arc:exp reward type gives the player a specified range of experience points.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
min | int | ✅Required | -No default value | The minimum amount of experience to give. |
max | int | ✅Required | -No default value | The 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 />