/advancement Command in Minecraft Java Edition

Grant or Revoke Player Advancements

Java EditionPlayers & EntitiesPermission: Level 2

The /advancement command lets operators give or take away advancements for one or more players in Minecraft Java Edition. You can choose to unlock or remove all advancements at once, or change specific ones based on a registry entry.

Players and server administrators use this command to test custom maps, reset a player's progress, or restore advancements that were lost due to a glitch. To run it, you need operator status with permission level 2, which means having cheats turned on in a single-player world.

Syntax (Java 26.3, 10 forms)

  1. /advancement grant <targets> everything
  2. /advancement grant <targets> from <advancement>
  3. /advancement grant <targets> only <advancement> [<criterion>]
  4. /advancement grant <targets> through <advancement>
  5. /advancement grant <targets> until <advancement>
  6. /advancement revoke <targets> everything
  7. /advancement revoke <targets> from <advancement>
  8. /advancement revoke <targets> only <advancement> [<criterion>]
  9. /advancement revoke <targets> through <advancement>
  10. /advancement revoke <targets> until <advancement>

The forms you will use most

/advancement grant <targets> everything
Gives every available advancement to the selected players.
/advancement grant <targets> only <advancement> [<criterion>]
Gives one specific advancement, or a single criterion within it, to the selected players.
/advancement grant <targets> from <advancement>
Gives the specified advancement and related advancements starting from that entry.
/advancement grant <targets> through <advancement>
Gives advancements connected through the specified advancement entry.
/advancement grant <targets> until <advancement>
Gives advancements leading up until the specified advancement entry.
/advancement revoke <targets> everything
Removes every unlocked advancement from the selected players.
/advancement revoke <targets> only <advancement> [<criterion>]
Removes one specific advancement, or a single criterion within it, from the selected players.
/advancement revoke <targets> from <advancement>
Removes the specified advancement and related advancements starting from that entry.

Arguments

ArgumentTypeWhat it means
<targets>target selector
players only
Specifies the players to target using a player name, a UUID, or a player target selector like @p, @a, @e, or @s.
<advancement>registry key
advancement
Specifies the registry key ID of the advancement entry you want to modify.
<criterion>text
rest of the line
An optional word or piece of text that specifies a single requirement inside the chosen advancement.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

Minecraft Bedrock Edition does not have an /advancement command, so this command is only available in Java Edition.

FAQ

How do I reset all advancements for a player?

You can reset all advancements by running /advancement revoke <targets> everything and replacing the target with the player's name or a selector like @a.

What permission level is needed for the /advancement command?

You need permission level 2, which requires being a server operator or turning on cheats in a single-player world.

When was the /advancement command available in Java Edition?

Based on game file measurements from version 1.13 through 26.3, the command was already available in Java Edition 1.13.

Related commands

/attribute/damage/defaultgamemode/effect/experience/gamemode/kill/ride/rotate/spawnpoint/spectate/spreadplayers/summon/swing/teleport/tp