Commands/advancement

Gives or takes an advancement from one or more players.

advancement (grant|revoke) everything advancement (grant|revoke) only [ ] advancement (grant|revoke) (from|through|until)
 * Syntax


 * Arguments


 * Whether to give or take away the to-be-specified advancement(s)
 * Whether to give or take away the to-be-specified advancement(s)


 * A player name or a target selector
 * A player name or a target selector




 * For specifying all loaded advancements
 * For specifying all loaded advancements


 * For specifying an advancement and all its children advancements (From that advancement to the end)
 * The exact order the operation is carried out in is specified advancement > child > child's child > ... When it operates on a child that branches, it iterates through all its children before continuing.
 * The exact order the operation is carried out in is specified advancement > child > child's child > ... When it operates on a child that branches, it iterates through all its children before continuing.


 * For specifying a single advancement
 * For specifying a single advancement


 * For specifying an advancement, all its parent advancements, and all its children advancements. through the specified advancement, going both backwards and forwards
 * The exact order the operation is as if the command were executed with "until" specified, then with "from" specified: parent > parent's parent > ... > root > specified advancement > child > child's child > ...
 * The exact order the operation is as if the command were executed with "until" specified, then with "from" specified: parent > parent's parent > ... > root > specified advancement > child > child's child > ...


 * For specifying an advancement and all its parent advancements until the root (From the start until that advancement)
 * The exact order the operation is carried out in is parent > parent's parent > ... > root > specified advancement.
 * The exact order the operation is carried out in is parent > parent's parent > ... > root > specified advancement.


 * A valid advancement identifier; specifies which advancement to target
 * A valid advancement identifier; specifies which advancement to target


 * (optional)
 * A valid advancement criteria identifier; specifies which criterion of the advancement to manipulate
 * This defaults to the entire advancement.
 * If specified, the command refers to merely the criterion and not the entire advancement.


 * Result


 * On success, grants or removes the specified advancement(s) to the player(s)
 * Fails if the arguments are invalid or if fails to resolve to one or more online players.


 * Examples


 * To grant the "Cover Me With Diamonds!" advancement to yourself, execute.