Minecraft/Commands

Commands can be executed on any version of Minecraft which has the chat console. To run a command, type a forward slash. There are many commands to learn.

The @ selectors also allow finer tuning, like this: @r[r=10,tags=alive] checks for a random player within ten blocks, with the "alive" tag (set with /tag). All of them are:
 * r: range. Note that this is a radius!
 * tags: checks if a tag exists on that entity.
 * type: checks its identifier matches. The identifier is usually a snake_case (all lowercase, underscores instead of spaces) version of its name.
 * x / y / z: If a coordinate matches.
 * dx / dy / dz: distance from x / y / z. Note, an  of 0 and   of 5 will only check x=0 to x=5. Set   to -5 to reverse this, or   to -5 and   to 10.