Commands/achievement

From Minecraft Wiki
Jump to: navigation, search
achievement
Restrictions

Operator

First introduced

1.7.2 (13w36a)

Removed

17w13a

Gives or takes an achievement from a player. Replaced with /advancement as achievements were replaced with advancements in the Java edition.

Syntax
achievement <give|take> <name|*> [player]
Arguments
name
Specifies which achievement to modify. Must be one of the following:
  • achievement.achievement_name, where achievement_name is a valid achievement identifier
  • * to represent all achievements
player (optional)
Must be a player name or a target selector. If not specified, defaults to the command's executor. Not optional in command blocks.
Result
Fails if the arguments aren't specified correctly, or if player fails to resolve to one or more online players.
On success, grants or removes the specified achievement(s) (and all prerequisite achievements) to the player(s).
Examples
To grant the "Overkill" achievement to yourself: achievement give achievement.overkill
To grant the "Taking Inventory" achievement to Alice: achievement give achievement.openInventory Alice
To remove all achievements from all players: achievement take * @a