Minecraft:Commands/advancement: Difference between revisions
From SAS Gaming Wiki
More actions
imported>ProBot m Bot: Adding lzh:令/advancement |
Remove broken links to missing pages |
||
| Line 5: | Line 5: | ||
}} | }} | ||
Gives or takes an | Gives or takes an advancement or its criterion from one or more players. | ||
== Syntax == | == Syntax == | ||
| Line 78: | Line 78: | ||
{{Navbox commands}} | {{Navbox commands}} | ||
de:Befehl/advancement | |||
es:Comandos/advancement | |||
ja:コマンド/advancement | |||
lzh:令/advancement | |||
nl:Opdrachten/advancement | |||
pt:Comandos/advancement | |||
ru:Команды консоли/advancement | |||
uk:Команди консолі/advancement | |||
zh:命令/advancement | |||
Revision as of 15:43, 9 April 2026
Template:Exclusive Template:Infobox command
Gives or takes an advancement or its criterion from one or more players.
Syntax
advancement (grant|revoke) <targets> everything- Adds or removes all loaded advancements.
advancement (grant|revoke) <targets> only <advancement> [<criterion>]- Adds or removes a single advancement or criterion.
advancement (grant|revoke) <targets> from <advancement>- Adds or removes an advancement and all its child advancements.
- Think of specifying everything 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.
advancement (grant|revoke) <targets> through <advancement>- Specifies an advancement, and adds or removes all its parent advancements, and all its child advancements.
- Think of specifying everything through the specified advancement, going both backward and forward.
- 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 > ...
advancement (grant|revoke) <targets> until <advancement>- Adds or removes an advancement and all its parent advancements until the root for addition/removal.
- Think of specifying everything from the start until that advancement.
- The exact order the operation is carried out in is:
parent > parent's parent > ... > root > specified advancement.
Arguments
- Specifies whether to add or remove the to-be-specified advancement(s).
- Specifies one player or more.
- Template:Arg desc
- Specifies a valid resource location of the advancement to target.
- Template:Arg desc
- Specifies a valid criterion of the advancement to manipulate.
- The command defaults to the entire advancement.
- If specified, the command refers to merely the criterion and not the entire advancement.
- Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table
Examples
- To grant the "Cover Me With Diamonds" advancement to the player, execute the command
/advancement grant @s only minecraft:story/shiny_gear. - To grant all advancements to every player, execute
/advancement grant @a everything. - To revoke "Cover Me With Diamonds" advancement from the player, execute the command
/advancement revoke @s only minecraft:story/shiny_gear. - To revoke all advancements from every player, execute
/advancement revoke @a everything.
History
See also
de:Befehl/advancement es:Comandos/advancement ja:コマンド/advancement lzh:令/advancement nl:Opdrachten/advancement pt:Comandos/advancement ru:Команды консоли/advancement uk:Команди консолі/advancement zh:命令/advancement