/advancement
Grants or revokes advancements from players. Can target specific advancements, advancement trees, or all advancements.
Syntax
/advancement <grant|revoke> <targets> <everything|from|only|through|until> [<advancement>] [<criterion>]Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| action | literal | Required | grant or revoke. |
| targets | entity | Required | The player(s) to affect. |
| mode | literal | Required | everything = all advancements; only = single advancement; from/through/until = advancement tree traversal. |
| advancement | resource | Optional | The specific advancement ID (not needed for 'everything'). |
| criterion | string | Optional | A specific criterion within the advancement (only with 'only' mode). |
Examples
/advancement grant @s everythingGrants all advancements to yourself.
/advancement revoke @a everythingRevokes all advancements from all players.
/advancement grant @p only minecraft:story/mine_stoneGrants just the "Stone Age" advancement to the nearest player.
Common Mistakes
- Using the display name instead of the advancement ID, you must use the namespaced ID (minecraft:story/mine_stone).
- Granting 'everything' in a world with many data packs, this can grant hundreds of advancements at once.
Notes
Advancements are organized in trees. 'from' grants the advancement and everything after it, 'until' grants the advancement and everything before it, 'through' grants the advancement and all connected advancements in both directions.
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting