This article is about console commands. For the block that minecraft id blocks commands, see Command Block.
Commands, in the Java, Bedrock, and Education Edition, are advanced features activated by typing certain strings of text. Commands in command blocks can be preceded by a slash, but it is not required. Commands in a command block usually also require an optional argument, like a player’s username. In a multiplayer game, entered by an operator or command block. Some player commands are also available in singleplayer even when cheats are not enabled. A number following a tilde or caret is an offset from something rather than a coordinate. The sign of the offset specifies whether to go in the positive or negative direction for that axis.
Usually absolute coordinates can be mixed with relative coordinates. The origin for the offset depends on the command. Other common offsets include from the position of the command’s execution or from another coordinate specified by the command. Description: Does not account for differences between Java 1. In most commands where a player may be specified as an argument, it is possible to «target» one or more players satisfying certain conditions instead of specifying players by name.
To target players by condition, choose a target selector variable and, optionally, one or more target selector arguments to modify the conditions to be satisfied. A target selector variable identifies the broad category of targets to select. Target selector arguments may be used to reduce the set of players from which the nearest player will be selected. After using a target selector, you can optionally use arguments to modify the set of targets selected. Spaces are allowed around the brackets, equal signs, and commas, except in between the target variable and the first bracket. Commas must be used to separate argument-value pairs.
Combine with selecting by distance to select only targets within a certain distance of that specific position, or combine with volume dimensions to select only targets within a certain cubic volume. The coordinates are doubles an allow values like 12. Ranges are supported to allow for only certain distances. All tested objectives are in a single tag, with a list of individual score selectors between braces afterwards. The selectors inside the braces support ranges. Selects only targets with a score in objective myscore of between 10 and 12.
Selects only targets with a score in objective myscore of 5 or greater. Selects only targets with a score in objective myscore of 15 or less. Selects only targets with a score in objective foo of exactly 10, and a score in objective bar of between 1 and 5. Selects only targets that do not have the scoreboard tag TAG. Selects only targets that have both the scoreboard tag TAG1 and TAG2. Selects only targets that have neither the scoreboard tag TAG1 nor the scoreboard tag TAG2.
Selects only targets not on team TEAM. Selects only targets not on any team. Selects only targets on any team. 1, so using a higher limit will increase the number of nearest or random targets returned. This automatically filters out all non-player targets.