Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/advancement

Command

/advancement

Grants advancements to players or takes them away, either one at a time, a whole branch, or all of them.

Syntax

/advancement (grant <targets>|revoke <targets>) everything
/advancement (grant <targets>|revoke <targets>) (from <advancement>|through <advancement>|until <advancement>)
/advancement (grant <targets>|revoke <targets>) only <advancement> [<criterion>]

Arguments

ArgumentKind of valueWhat to type
<targets>Target selectorThe players to change. Accepts a player name or a selector that picks one or more players.
<advancement>Game idThe id of an advancement, for example minecraft:story/mine_stone.
<criterion>TextThe name of one criterion inside the advancement. Everything typed after the advancement id is used as the name. The rest of the line.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled and multiplayer servers. Needs permission level 2 (gamemasters): server operators, players with cheats, command blocks, and functions can all run it.
ResultReports which advancement or how many advancements were granted or revoked and for whom. The number /execute store saves is the number of advancements actually changed, added up over all targeted players. With a criterion, it is the number of players whose criterion changed.
grantCompletes the chosen advancements for the targets by awarding every criterion they are still missing. Fails if every target already has all of them.
revokeRemoves the chosen advancements from the targets by taking back every criterion they had completed, including partial progress. Fails if no target had any progress in them.
everythingSelects every advancement loaded in the world, including the recipe advancements.
onlySelects just the named advancement. Add a criterion name after it to grant or revoke a single criterion of that advancement instead of the whole thing.
fromSelects the named advancement and every advancement that follows from it in the advancement tree.
untilSelects the named advancement and every advancement leading up to it, back to the root of its tab.
throughSelects the named advancement, everything leading up to it, and everything that follows from it.
Unknown criterionIf the criterion name is not part of the advancement, the command fails with a message saying the advancement does not contain that criterion.

Examples

/advancement grant @s only minecraft:story/mine_stone

Gives you the Stone Age advancement.

/advancement grant @a everything

Gives every advancement to all players.

/advancement revoke @s everything

Resets all of your advancements.

/advancement grant @p until minecraft:story/enter_the_nether

Gives the nearest player the We Need to Go Deeper advancement and every advancement leading up to it.

/advancement revoke @a from minecraft:nether/root

Takes the Nether tab's root advancement and everything after it away from all players.

/advancement grant @s only minecraft:husbandry/balanced_diet apple

Marks the Apple criterion of A Balanced Diet as done for you.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)