Advancement
The arc:advancement condition type checks if the advancement involved in the action matches specific criteria.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
id | Identifier | ❌Optional | - | Advancement ID. |
parent_id | Identifier | ❌Optional | - | Parent Advancement ID. |
type | AdvancementType | ❌Optional | - | TASK, GOAL, or CHALLENGE. |
Example
The following example gives a reward when the player obtains the "Stone Age" advancement.
data/my_datapack/arc/stone_age_reward.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_advancement",
"conditions": [
{
"type": "arc:advancement",
"id": "minecraft:story/mine_stone"
}
],
"rewards": [
{
"type": "arc:exp",
"min": 50,
"max": 100
}
]
}
Compatible Action Types
🏆 On Advancement
The arc:on_advancement action type is triggered when a player receives an advancement.