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