Commands

Commands may be used by players, operators and the Command Block while in multiplayer connected to a Minecraft server, and in singleplayer when the user has cheats enabled for the world. They may be entered from a Minecraft client while in the game or on the host computer's server console.

Commands being entered into the Minecraft client itself must be prefixed by a slash (example: ). The command window is identical to the chat window and can be accessed by pressing or starting directly by entering a slash. Commands being executed via the console are not preceded by a slash.

Pressing cycles through possible commands or arguments.

Player commands
These commands can be used in the chat window by any player who is allowed to connect to the server. In addition, /seed may be used in single-player mode, regardless of whether cheats are enabled.

Operator-only commands
These commands are usable by ops (operators) from the server console as well as through the chat window when prefixed by the command character (a forward slash). For example: "/help" instead of "help". Required arguments appear in ; optional arguments appear in [square brackets]. Arguments in italics should be replaced by an appropriate value; arguments in plain text must be entered exactly as shown.

These commands are also available in SSP with enabled cheats or for players hosting a world.

Note: Op commands are broadcasted to the other ops online.

Command-Block-only commands
This command can be used only in a Command Block and cannot be used in other ways. Command blocks are only obtainable via the  command.

Trivia

 * When the game rule "doFireTick" is set to "false", fires, though they will not spread, will burn eternally and be immune to rain, regardless of the block type they are attached to. This can be a large nuisance during thunderstorms, since lightning bolts can start a significant number of fires, and players need to put them out manually.


 * If you have "Resistance" Status effect level 5, /kill command does not work.