Revoke Advancement
Revokes an advancement or a criterion/criteria of an advancement from the player.
Type ID: eggolib:grant_advancement
Fields
Field | Type | Default | Description |
---|---|---|---|
advancement |
Identifier | optional | The advancement to revoke from the player. |
criterion |
String | optional | If specified, this criterion will be revoked from the player. |
criteria |
Array of Strings | optional | If specified, these criteria will be revoked from the player. |
selection |
Advancement Selection | "only" |
Determines how the parent(s) and child(ren) of the specified advancement is revoked. |
Examples
This example will revoke all the advancements from the player.
"entity_action": {
"type": "eggolib:grant_advancement",
"advancement": "minecraft:story/mine_stone"
}
This example will revoke the "Stone Age" (data/minecraft/advancements/story/mine_stone.json
) advancement from the player.
"entity_action": {
"type": "eggolib:grant_advancement",
"advancement": "minecraft:adventure/adventuring_time",
"criteria": [
"minecraft:badlands",
"minecraft:beach",
"minecraft:desert"
]
}
This example will revoke the "Adventuring Time" (data/minecraft/advancements/adventure/adventuring_time.json
) advancement partially, with only the minecraft:badlands
, minecraft:beach
, and minecraft:desert
criteria revoked.