This article is about console commands. For the block that executes commands, see Command Block. Commands, in the Java, Bedrock, and Gold tools minecraft 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.