Experience Level
The arc:exp_level condition type checks if the experience level cost of an action matches a specific value.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
level | int | ✅Required | - | The experience level to check. |
Example
The following example gives the player an extra diamond when they perform a level 30 enchantment.
data/my_datapack/arc/reward_for_max_enchant.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_enchant_item",
"conditions": [
{
"type": "arc:exp_level",
"level": 30
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:diamond" }
}
]
}
Compatible Action Types
✨ On Enchant Item
The arc:onenchantitem action type is triggered when a player enchants an item.