|This article is about multiplayer experiences and content and is not considered integral to the main experience of Minecraft. Some aspects of this article may differ between separate multiplayer servers.|
| Come on! Grow up!
This article is a stub. You can help by
Commands are advanced functions activated by typing certain strings of text.
When the Player creates a new world, they will have the option to choose to have "Cheats" on or off. If the player chooses off, they will be unable to use cheats in that world.
Commands can also be used with Command Blocks.
List of commands
|If you see...||Then...|
|plain text||Enter this exactly as shown|
|italics||Replace this with the appropriate value.|
|<angle brackets>||This is a required argument.|
|[square brackets]||This is an optional argument.|
|x|y||Pick one of the options shown. Available options are separated by vertical bars.|
|ellipsis (...)||The argument may consist of multiple words separated by spaces|
|Command||Syntax (Usage)||Action||Operator Only?||Success conditions (activates comparator)||Bugs|
|/help||/help [page]||Shows a list of all available commands||No|
|/me||/me <text>||Shows your name then <text> (i.e. /me ran outputs *Player ran)||If <text> parameter is entered in|
|/whisper (/msg /tell)||/whisper <player> <message>||Tells a private message to <player>||No||If <player> and <message> parameters are entered and <player> must be online|
|/give||/give <player> <Item name> [Amount] [Data Value(i.e. color of wool)(Numerical Only)] [NBT data tag]||Gives <player> [Amount] <Item name>s. If [Data Value] or [NBT data tag] is specified, that data will be put into the item/block.||Yes||If <player> and <Item name> parameters are entered, <Item name> must be a valid name (Numeric IDs allowed until 14w04a), <player> must be online. If [Amount] is specified, the Amount value must be greater than 0 but less than 65.|
|/tp||/tp <player> <player2> OR /tp <player> <x> <y> <z>||Teleports <player> to <player2> or <x> <y> <z>||Yes||<player> and <player2> must be online. <x> <y> <z> parameters must be in the range of -3000000 and 3000000. If coordinates are specified, all 3 must be specified.|
|/kill||/kill [player]||Deals 1000 void damage to [player]. If no player is specified, you kill yourself.||Yes||[player] must be online, if specified.|
|/weather||/weather < clear - rain - thunder> [Time (seconds)]||Changes the weather to < clear - rain - thunder> for [Time] seconds.||Yes||[Time] must be 1000000 or lower, and the weather type has to be specified||[Time] is bugged without snapshots.|
|/toggledownfall||/toggledownfall||Turns rain on or off.||Yes|
|/gamemode||/gamemode <0 - 1 - 2 - 3 OR s - c - a - sp OR survival - creative - adventure - spectator> [player]||Changes [player]'s gamemode to <survival - creative - adventure - spectator>||Yes||Game mode must be specified. Spectator is only available in Minecraft 1.8 and some of its snapshots|
|/difficulty||/difficulty <peaceful - easy - medium - hard>||Changes the difficulty of the server.||Yes||Difficulty must be specified.|
|/enchant||/enchant <player> <ID> [Enchantment level]||Enchants the item in the <player>s hand with <ID>.||Yes||<player> must be online. <ID> must be a true enchantment ID. If [Enchantment level] is specified, it cannot go over the maximum level for the enchant.|
|/defaultgamemode||/defaultgamemode <survival - creative - adventure - spectator>||Sets the server's default gamemode for when players join for the first time.||Yes||Gamemode must be specified. Spectator only works in 1.8 and some of its snapshots.|
|/summon||/summon <Savegame ID(Mob ID (not numerical))> [x] [y] [z] [dataTag]||Spawns in a <Savegame ID> at [x] [y] [z]. If [dataTag] is specified, the data will go into the mob. Certain mobs cannot be spawned.||Yes||<Savegame ID> must be a true mob. Note that Monster or Mob cannot be spawned even though they're on the list when you press tab. [x] [y] [z] must be in loaded chunks and the y coordinate must be 0 or greater but 255 or lower. If one of the coordinates is provided, all others must be provided.|
|/effect||/effect <player> <effect ID(numerical)> [Time(seconds)] [amplifier]||Gives <player> <effect ID> [amplifier] for [Time] seconds.||Yes|| <player> must be online|
<Effect ID> must be a valid ID.
|/setblock||/setblock <x> <y> <z> <Block name> [dataValue] [oldBlockHandling] [dataTag]||Sets <block name> at the coordinates listed.||Yes|| Coordinates listed must be in loaded chunks.|
The block name must be a valid Block name.
|/scoreboard||/scoreboard <objectives - players - teams>||Changes scoreboard settings/options with the used parameters.||Yes|
|/testforblock||/testforblock <x> <y> <z> <blockname> [DataValue] [dataTag]||Tests <x> <y> <z> for <blockname> with DV [DataValue] and data keys, if those two are specified.||Yes||<blockname> must match the block at <x> <y> <z>.|
|/testfor||/testfor <player or entity> [dataTag]||Tests for a player or entity, and specified data if needed.||Yes||Must find a player or entity with correct conditions.|
|/xp||/xp <player> <amount> OR /xp <player> <amount>L||Gives <amount> xp to <player>, or <amount>L levels to <player>.||Yes|| <player> must be online.|
Maximum number at a time is 999999.
|/achievement||/achievement give <stat_name> <player>||Gives an achievement or +1 value to a statistic to <player>. If an achievement is given, all of its prerequisites will be given as well.||Yes|| <player> must be online.|
<stat_name> must be a valid Statistic or achievement name.
|/clear||/clear <player> [item ID] [DV] [maximum amount taken] [DataTag]||Clears <player> from [Item ID] if [DV] and [DataTag] match the one in the inventory. If [item ID] is not specified, it completely erases the player's inventory.||Yes|| All tags, dv, stack count, and item id must match.|
<player> must be online.
|/debug||/debug <start - stop>||Starts profiling a debug session or stops one.||Yes|
|/gamerule||/gamerule <gamerule> [true - false]||Sets a gamerule to be true or false. If true or false is not specified, it shows if the gamerule is true or false.||Yes||<Gamerule> must be a valid gamerule.|
|/playsound||/playsound <sound> <player> [x] [y] [z] [volume] [pitch] [minimumVolume]||Plays <sound> to <player>.||Yes|| <player> must be online.|
volume must be at least 0.0
|/publish||/publish||Opens your world to LAN.||Yes|
|/say||/say <message>||Broadcasts <message>. Appears as "[<player>] <message>"||Yes|
|/seed||/seed||Tells the world seed.||Yes|
|/setworldspawn||/setworldspawn [x] [y] [z]||Sets the server spawnpoint to [x] [y] [z]. If no coordinates are specified, it will be at the executor's position.||Yes||Range is -30000000 to 30000000.|
|/spawnpoint||/spawnpoint <player> [x] [y] [z]||Sets <player>'s spawnpoint at [x] [y] [z]. If no coordinates are specified, it will be at the executor's position.||Yes||Range is -30000000 to 30000000.|
|/spreadplayers||/spreadplayers <x> <z> [spreadDistance] [maxRange] [respectTeams] <playernames>||Spreads players out, over a long or short distance.||Yes|
|/tellraw||/tellraw <player> <raw json message>||Sends a message to a player. Also allows the use of clickable buttons that makes a player run a command.||Yes|| <player> must be online.|
<raw json message> must be correctly coded in JSON.
|/time||/time set <value> OR /time add <value>||Sets the time to <value> or adds <value ticks to the current time||Yes|
|The following commands are only available in multiplayer.|
|/ban||/ban <player> [reason]||Bans a player.||Yes|
|/ban-ip||/ban-ip <<address> - <player>>||Stops a player's IP from coming on.||Yes|
|/banlist||/banlist [ips]||Lets you see the banned players. "IPS" makes you see banned ips.||Yes|
|/deop||/deop <player>||Takes away operator powers from a player.||Yes|
|/kick||/kick <player> [reason]||Disconnects a player from the server.||Yes||<player> must be online.|
|/list||/list||Lets you see all online players.||No|
|/op||/op <player>||Gives a player operator powers.||Yes|
|/pardon||/pardon <player>||Pardons, or unbans, a player.||Yes|
|/pardon-ip||/pardon-ip <ip address>||Pardons, or unbans, an IP address.||Yes|
|/save-all||/save-all||Forces the server to save changes to the world save.||Yes|
|/save-off||/save-off||Stops the server from making changes to the save.||Yes|
|/save-on||/save-on||Makes the server make changes to the save.||Yes|
|/setidletimeout||/setidletimeout <minutes>||Automatically kicks players after idling for <minutes> minutes.||Yes|
|/stop||/stop||Saves all changes to the save, then shuts down the server.||Yes|
|/whitelist||/whitelist <add - remove> <player> OR /whitelist list OR /whitelist <on - off> OR /whitelist reload||Whitelist options.||Yes|
|The following commands are used in future versions.|
|/fill||/fill <x> <y> <z> <dx> <dy> <dz> <block Name> [DataValue] [oldBlockHandling] [dataTag] OR /fill <x> <y> <z> <dx> <dy> <dz> <block Name> [DataValue] replace <Block Name> <ReplacedBlockData>||Fills the between the 2 coordinates with <block Name>. If replace is used for oldBlockHandling, the next parameter tells what block <block Name> should be replaced.||Yes|| Maximum cube volume is 4096 cubic meters(blocks).|
Block name must be a valid name.
|/clone||/clone <x> <y> <z> <dx> <dy> <dz> <x2> <y2> <z2> [type]||Copies the area within the first two set of coordinates and pastes it at the third.||Yes||Maximum copied cube volume is 4096 cubic meters(blocks).|
|/trigger||/trigger||Adds one point to scoreboard objectives with the "trigger" criteria.||No, but needs given permission|
|/blockdata||/blockdata <x> <y> <z> <dataTag>||Gives the block at the specified coordinates the data in <dataTag>.||Yes||Block at the coordinates specified must be a block that holds NBT Data.|
|/execute||/execute <player or entity> <x> <y> <z> <command> <Other command parameters>||Executes <command> at the location of <player or entity>.||Yes||If a player is specified, he/she must be online.|
|/particle||/particle <name> <x> <y> <z> <dx> <dy> <dz> <speed> [count] [player or entity]||Displays the particle <name> at <x> <y> <z> or coordinates from [player or entity] (if ~ is used) [count] times at the specified speed.||Yes|| If a player is specified, he/she must be online.|
Particle name must be valid.
|/testforblocks||/testforblocks <x> <y> <z> <dx> <dy> <dz> <x2> <y2> <z2> <dx2> <dy2> <dz2>||Compares two areas.||Yes||Two areas must be the same.|
|/worldborder||/worldborder set <size> [delay] -OR- /worldborder center <x> <z>||Sets an impassible border that is <size> blocks as its area, and is centered on a location when "/worldborder center" is used. Any mobs outside of the box will gradually take damage.||Yes||Any mobs inside the box, except players, will die too.|
Selectors are letters followed by an at sign (@) that can be used to apply the command to a player or entity without having to actually specify a player.
@p: Nearest player
@a: All players
@r: Random player
@e: All entities Future updates only
Brackets can be placed after a selector to specify conditions. If it is for "/testfor", or any command that allows the use of selectors, these are called arguments.
The layout for this is: <selector>[<argument=<value>,<argument>=<value>, ...]
|Argument||Function / Action|
|x||The X coordinate for the searched area. Also is one corner for cubic selection if dx is used.|
|y||The Y coordinate for the searched area. Also is one corner for cubic selection if dy is used.|
|z||The Z coordinate for the searched area. Also is one corner for cubic selection if dz is used.|
|dx||The opposite corner of the value used for x.|
|dy||The opposite corner of the value used for y.|
|dz||The opposite corner of the value used for z.|
|rm||The minimum search radius.|
|r||The maximum search radius.|
|rx||The maximum x rotation.|
|ry||The maximum y rotation.|
|rxm||The minimum x rotation.|
|rym||The minimum y rotation.|
|m||The gamemode of the player. Values: -1 = All, 0 = Survival, 1 = Creative, 2 = Adventure, 3 = Spectator.|
|c||The number of players/entities to target.|
|l||The maximum experience level amount.|
|lm||The minimum experience level amount.|
|team||The team this player is on. This is an argument that can have an ! in front of the value, meaning "not".|
|score_objectivename_min||The minimum score for an objective.|
|score_objectivename||The maximum score for an objective.|
|type||The SaveGame ID for an entity. This is an argument that can have an ! in front of the value, meaning "not". Future versions only|
|name||The name of the entity. This is an argument that can have an ! in front of the value, meaning "not". Future versions only|
In a Twitter post, Jeb hinted at a new command with the name "replaced/moved." From the thread, it is estimated that it can be used to take certain blocks and replace them with a different one, possibly in a certain radius. This is being added in the 1.8 Update.