How do I use cheats in Minecraft?

The Boss Update for Minecraft: Windows 10 Edition Beta and Pocket Edition brought the ability to use slash commands to alter your game. Some people call these commands cheats, but others call them fun! Here's how to use slash commands in Minecraft.

Note: Enabling cheats will block your ability to get Xbox Live achievements!

How to enable slash commands

  1. Launch Minecraft: Windows 10 Edition Beta from your Start menu, desktop, or taskbar.
  2. Click Play.

    Launch Minecraft. Click Play.

  3. Click Create New World.
  4. Click the toggle switch next to Cheats.

    Click Create New World. Click the toggle switch next to Cheats.

  5. Click Continue.
  6. Click Create.

    Click Continue. Click Create.

You can also change an existing game to allow slash commands.

  1. Launch Minecraft: Windows 10 Edition Beta from your Start menu, desktop, or taskbar.
  2. Click Play.
  3. Click the edit button next to an existing world. It looks like a pencil drawing two lines.

    Click Play. Click the edit button.

  4. Click the toggle switch next to Cheats.
  5. Click Play.

    Click the toggle switch next to Cheats. Click Play.

List of available slash commands

  • /? and /help: Type /help for page one. Type /help 2 for page two, etc. There are six pages of slash commands in total.

  • /clone: Type /clone <x1> <y1> <z1> <x2> <y2> <z2> <x> <y> <z> where x1 y1 z1 are the coordinates for the start of a region to clone, x2 y2 z2 are the coordinates for the end of the region to clone, and x y z are the region where the clone will appear. Example: /clone -267 70 -20 -280 78 -30 -250 50 -40

  • /deop: Type /deop <playername> to remove admin privileges from a certain player.

  • /enchant: Type /enchant <playername> <enchantmentID> <level>. This will enchant the item the player is currently holding in their hand. Example: /enchant ceeceehaatch 16 3. This gives the sword I'm holding level three Sharpness enchantment.

  • /fill: Type /fill <x1> <y1> <z1> <x2> <y2> <z2> <blockName> to fill the area with a certain type of block. Example: /fill -263 70 -7 -268 75 -2 gold_ore will replace all blocks in that area with gold ore.

  • /gamemode: Type /gamemode 0 to set the game to survival mode. Type /gamemode 1 to set the game to creative mode.

  • /give: Type /give <playername> <itemName> <amount> to give a specific item to a specific player. Example: /give ceeceehaatch diamond_sword 1

  • /kill: Type /kill <playername>. This will kill the player.

  • /list: Type /list to display the players currently connected to the server.

  • /op: Type `/op to give a certain player admin abilities in a server.

  • /say: Type /say then type a message to send it to everyone.

  • /setblock: Type /setblock <x> <y> <z> <blockName> to change a certain block at a certain coordinate to a different type of block. Example: /setblock -267 70 -6 gold_ore.

  • /setworldspawn: Type /setworldspawn to set the spawn point for all players to the point you're currently at. Type /setworldspawn <x> <y> <z> where x y z are coordinates to set a new spawn point for all players.

  • /spawnpoint: Type spawnpoint <playername> <x> <y> <z> where x y z are the coordinates you want a certain player to spawn at.

  • /summon: Type /summon <Entityname> to spawn an entity on your current position. Type /summon <Entityname> <x> <y> <z> where x y z are the coordinates you want to spawn an entity at. Example: /summon Zombie -269 70 -3

  • /tp: Type /tp <playername> <location>. You can use coordinates or another player's name in the field.

  • /tell and /msg: Type /tell <playername> <message> to send a message to a certain player.

  • /testforblock: Type /testforblock <x> <y> <z> <blockName> to test if a certain block is in a certain spot. Example: /testforblock -267 70 -6 gold_ore

  • /time add: Type /time add <number> to add time to the world. Example: /time add 1000 to add an hour of time to the clock — if it's 2:00 a.m. when you use the command, the time will jump to 3:00 a.m.

  • /time query daytime: Type /time query daytime to find out the in-game time.

  • /time query gametime: Type /time query gametime to see the total amount of time elapsed.

  • /time set: Type /time set <number> to change the time of day. 0 is equal to 6:00 a.m. and 23000 is equal to 5:00 a.m. Example: /time set 16000 will change the time to 10:00 p.m.

  • /toggledownfall: Type /toggledownfall to change the weather. If it's clear, it will start to rain or snow depending on the biome. If it's raining or snowing, it will become clear.

  • /weather clear: Type /weather clear to remove rain or snow.

  • /weather rain: Type /weather rain to add rain or snow.

  • /weather thunder: Type /weather thunder to add a thunderstorm.

  • /xp: Type /xp <number> <playername> to give that amount of XP to a certain player. Type /xp <number>L <playername> to give that many levels to a certain player.

How to use slash commands

Using slash commands in the chat window.

  1. Hit T or Enter on your keyboard to open the chat bar.
  2. Type the slash command into the field. Using the list of commands above, replace anything surrounded with < > with the corresponding information. Make sure you also remove the < >.
  3. Hit Enter on your keyboard to submit the command.

More Minecraft!

For more information on Minecraft, the Boss Update, and beyond, see the links below!