Command |
Description |
clear <playername> [item] [data] |
Clears the inventory of playername or the specified item:data. |
debug <start | stop> |
Starts a new debug profiling session or stops the session currently running. It notifies about potential performance bottlenecks in the console when active and creates a profiler results file in the folder debug when stopped. |
defaultgamemode <survival | creative | adventure> |
Sets the default game mode that is shown on the world selection menu. New players that join the world will be put into the default game mode; i.e., if the default game mode is creative, new players will start in creative. The game modes can be abbreviated to "s/c/a" or "0/1/2" respectively. This command cannot enable or disable Hardcore mode. |
difficulty <peaceful | easy | normal | hard> |
Changes the difficulty. The difficulties can be abbreviated to "p/e/n/h" or "0/1/2/3" respectively. |
effect <player> <effect> [seconds] [amplifier] |
gives the targeted player the specified effect for the specified time (default is 30 seconds). Effects have a limit of 1,000,000 seconds, and the amplifier field has a limit of 255. Effect id's can be found on the potion effects page. |
enchant <playername> <enchantment ID> [enchantment level] |
Enchants the item that the player is currently holding, according to enchantment ID. Note that this works within the normal limitations of enchanting items. Enchantments can only be applied to items which can normally receive that specific enchantment. Enchantment levels can not be above the normal highest achievable for the selected enchantment. Conflicting or overpowering enchantment combinations usually prevented are also prevented with this command. |
gamemode <survival | creative | adventure> [playername] |
Changes the game mode for playername. The game modes can be abbreviated to "s/c/a" or "0/1/2" respectively. If no playername is given, it will set your own gamemode. Remember, this will only affect playername and no one else. Note: Player must currently be online for the command to work. |
gamerule <rulename> [true | false] |
Activates or deactivates the rulename. Available rules are:
- commandBlockOutput - Whether command blocks should notify admins when they perform commands.
- doFireTick - Whether fire should spread.
- doMobLoot - Whether mobs should drop items.
- doMobSpawning - Whether mobs should naturally spawn.
- doTileDrops - Whether blocks should have drops.
- keepInventory - Whether the player should keep items in their inventory if they die.
- mobGriefing - Whether creepers, endermen, ghasts, and withers should be able to change blocks, or zombies, skeletons, and zombie pigmen can pick up items.
|
give <playername> <item> [amount] [data-value] |
Spawns amount (defaults to 1) of the item defined by item with the specified data value (defaults to 0) at playername 's location. For example typing /give John 5 30 1 will give a player called John 30 blocks of Spruce Wood Planks. |
kill |
Inflicts 1000 ( × 500) damage to the user, killing them unless an extremely powerful /effect for resistance is in use. Useful when lost, stuck or to restore health and hunger (assuming you can get your items back easily). Also displays message "Ouch. That looks like it hurt." |
publish |
Opens your single-player game for LAN friends to join. This command appears in the singleplayer cheats. |
say <message> |
Broadcasts message to all players on the server. |
scoreboard <objectives|players|teams> |
See Scoreboard for more information. Scoreboard-specific commands. |
seed |
Displays the seed. This command can always be used in single-player mode, regardless of whether cheats are enabled. |
spawnpoint <player> [x] [y] [z] |
Sets the spawnpoint of that player to that position, or to the current position if x y and z are not specified. NOTE: Spawnpoint coordinates must be specified in whole numbers. No decimals. |
time set <number | day | night> |
Sets the world time. number is an integer between 0 and 24000, inclusive, where 0 is dawn, 6000 midday, 12000 dusk and 18000 midnight. "time set day" sets the time to 0, and "time set night" sets the time to 12500. |
time add <number> |
Increments the world time, as above. number must be 0 or positive. |
toggledownfall |
Toggles rain and snow. |
tp [playername] <targetplayer> |
Teleports player playername to targetplayer 's location. If no player is specified, it will teleport yourself. |
tp [playername] <x> <y> <z> |
Teleports player playername (or yourself if no player is specified) to coordinates x,y,z. (the y value cannot be smaller than 0). Can also relatively move the player by adding the ~ character before the coordinate value. For example typing /tp John ~3 64 ~3 will teleport a player called John 3 blocks away from his current x and z, and to y 64. |
weather <clear | rain | thunder> [seconds] |
Changes the weather. Maximum is 1000000. |
xp <amount> <playername> |
Gives the specified user the given number of orbs. Maximum is 2,147,483,647 per command. Negative amounts may not be used to remove experience points. |
xp <amount>L <playername> |
Gives playername the amount number of experience levels. Maximum is 2,147,483,647. Negative amounts may be used to remove experience levels. |