How to Use the Advancement Command – Wiki Guide
This Minecraft tutorial explains how to use the /advancement command with screenshots and step-by-step instructions.
You can use the /advancement command to grant, revoke or test advancements for a player in Minecraft. The /advancement command replaces the /achievement command in newer versions of Minecraft. Let’s explore how to use this cheat (game command).
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
Advancement Command
Advancement Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac), there are different syntaxes depending on what you would like to do with the advancement.
To grant an advancement to a player:
/advancement grant <targets> <everything¦from¦only¦through¦until> [advancementID]
To remove an advancement from a player:
/advancement revoke <targets> <everything¦from¦only¦through¦until> [advancementID]
To test whether a player has completed an advancement (in Java Edition 1.12 only):
/advancement test <targets> [advancementID]
Definitions
- targets is the name of a player (or a target selector).
- everything – grant/revoke all advancements
- from – grant/revoke a specific advancement and all of its child advancements
- only – grant/revoke a specific advancement
- through – grant/revoke a specific advancement, all of its parent advancements, and all of its child advancements
- until – grant/revoke a specific advancement and all of its parent advancements
- advancementID is the Minecraft ID of the advancement to grant/revoke. (See List of Advancements).
Examples
Example in Java Edition (PC/Mac)
To grant all advancements to the player named 9Minecraft:
/advancement grant 9Minecraft everything
To revoke the advancement called “Getting an Upgrade” from all players:
/advancement revoke @a only story/upgrade_tools
To test if the nearest player has the advancement called “Find End City” (in Java Edition 1.12 only):
/advancement test @p only end/find_end_city
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
- For Java Edition (PC/Mac), press the T key to open the chat window.
2. Type the Command
In this example, we will grant all advancements to the player called 9Minecraft in Minecraft Java Edition (PC/Mac) with the following command:
/advancement grant 9Minecraft everything
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the cheat has been entered, all advancements will be given to the player named 9Minecraft.
The new advancements that are granted to 9Minecraft will appear in the top right of the game window. You will also see an advancement message in the Chat window that announces each new advancement for 9Minecraft.
Congratulations, you just learned how to use the /advancement command in Minecraft!