Minecraft Cheats, Cheat Codes, and Walkthroughs

Cheats and more for Minecraft on Xbox, PlayStation, and your PC

Minecraft is a game that's all about exploring and building, and it's a fantastic creative outlet, so having the right cheats, tips and secret techniques at your disposal can really come in handy. Cheats in Minecraft can allow you to place any block anywhere you want, spawn hostile monsters and friendly creatures, get free and powerful gear, and even generate free resources in survival mode.

Person playing MInecraft on PC with cheats enabled
Lifewire / Alex Dos Diaz

Minecraft cheats don't require the installation of mods, but they still don't work in every version of the game. Cheats are also unavailable if the option is disabled on the server that you're playing on. Advanced techniques, glitches, and exploits are typically available regardless of the platform or server until they are patched, or fixed, by the developer.

How to Enter Minecraft Cheats on PC (Minecraft Java Edition)

If you want to use cheats in Minecraft: Java Edition on the PC, you need to enable them first. This can be accomplished by setting the cheats toggle switch to the on position when you start a brand new world. You can also turn cheats on in an existing world through an easy process:

  1. Open the Game Menu.

    A screenshot of Minecraft: Java Edition.
  2. Click Open to LAN.

    A screenshot of Minecraft: Java Edition.
  3. Click Allow Cheats: OFF so that it changes to Allow Cheats: ON.

    A screenshot of turning cheats on in Minecraft: Java Edition.
  4. Click Start LAN World.

    A screenshot of enabling cheats in Minecraft.
  5. You're ready to start using cheats.

Cheats in Minecraft: Java Edition involves typing commands into the console. The console can be opened by pressing the / button. When you open the console, you will see a box at the bottom of the screen that you can type into.

Cheat commands follow the basic syntax of /cheatname target x y z. In this example, cheatname is the name of the cheat, target is the name of the player you want to target, and x y z refers to the coordinates.

You can use ~ ~ ~ for the coordinates of your character, so the coordinates ~+1 ~+1 ~+1 would be shifted exactly one block, in each axis, from your own position.

Cheats for Minecraft Java Edition on PC

What the Cheat Does How to Perform the Cheat
Generate any block you want Type /setblock x y z block_type into the console.
Example: /setblock ~ ~ ~+1 diamond_ore will set a block of diamond ore right next to you!
Teleport any character to any location Type /tp playername x y z into the console.
Teleport any character to the location of another character Type /tp playername differentplayername into the console.
Kill your character Type /kill into the console.
Kill another player Type /kill playername into the console.
Change the weather Type /weather weathertype into the console.
Example: /weather clear will change the weather to clear. Rain, thunder, and snow are other options.
Change the time of day

Type /time set x into the console.
Tip: Replace x with 0 for dawn, 6000 for day, 12000 for sunset, or 18000 for the middle of the night.

Stop enemies from attacking Type /difficulty peaceful into the console.
Tip: replace peaceful with easy, normal or hard to make enemies hostile again.
Spawn any creature or enemy Type /summon creaturename x y z into the console.
Example: Typing /spawn horse ~ ~ ~ will cause a horse to appear near your character.
Enchant any item instantly Type /enchant playername ID# level# into the console.
Example: Typing /enchant playername 35 3 will enchant the tool the user is holding so that it generates extra blocks whenever it is used to mine, dig or chop down trees.
Get free experience points Type /xp amount playername into the console.
Turns on creative mode Type /gamemode creative into the console.
Note: type /gamemode survival to switch back.
Fly Jump twice, or press F12. Holding the jump button will make you fly higher, and holding the sneak button will make you fly lower.
Note: creative mode must be turned on to enable flight in Minecraft.
Place any block, or get any item

With creative mode activated, open your inventory to access a list of every block, item, and material in the game.
Note: You can d rag items you want onto your item bar, or select the survival inventory tab to place them in your personal inventory.

Turn on spectator mode Type /gamemode spectator into the console.

Cheats on Minecraft Windows 10 Edition, Xbox One, Switch, and Other Better Together Platforms

Cheats in Minecraft: Windows 10 Edition, and other platforms that run the Better Together version of the game, have to be enabled before you can use them. This involves turning cheats on, which can be done either when you first start a world, or at any time after that.

If you want to enable cheats from the start, just enable the Activate Cheats toggle when creating a world.

Turning cheats on after you have already created a world is also possible:

  1. Open the main menu.

  2. Click on Settings.

  3. On the right side of the screen, scroll down until you find the Cheats section.

  4. Flip the Activate Cheats toggle.

  5. Exit the menu, and cheats will be enabled.

If you enable cheats on Minecraft: Windows 10 Edition or Xbox One, players connected to your world will not be able to earn Xbox achievements for anything they accomplish while connected to your world. Even if you turn cheats back off, achievements will remain disabled.

How to Enable Cheats on Microsoft Devices

Some of the Windows 10, Switch, GearVR, and Xbox One Minecraft cheats can be enabled through a similar process to the one used to turn cheats on. That process is:

  1. Open the main menu.

    A screenshot of the Minecraft main menu.
  2. Select Settings.

    A screenshot of the Minecraft main menu.
  3. On the right side of the screen, scroll down until you locate the Cheats section.

    A screenshot of the Minecraft cheats section.
  4. Activate the Activate Cheats toggle switch to enable cheats.

    The switch must be flipped to the right.

  5. Activate all of the cheats you want.

    A screenshot of Minecraft cheats.

    The left position is off, and the right position is on. So if you want to disable something like mob spawning, flip that toggle to the left.

  6. Exit the menu and enjoy your cheats.

Cheats Available on Microsoft Versions of Minecraft

The cheats that can be activated in this way include:

Cheat Name What does it do?
Always Day Turning it on prevents day from ever turning into night.
Keep Inventory Turning it on prevents players from losing their items when they die.
Mob Spawning Turning it off prevents enemies from spawning.
Mob Griefing Prevents creepers from blowing up your creations, endermen from stealing blocks, etc.
Weather Cycle Turning it off prevents the weather from changing.

Other cheats in Minecraft: Better Together are entered via the chat window, which can be opened by pressing the / key. Once the chat window is opened, you type the cheat you want to turn on, press enter, and the cheat will be activated.

Here are the cheat codes you can enter in the Windows 10, Xbox One, Switch, and other related versions of Minecraft:

What the Cheat Does How to Perform the Cheat
Generate any block you want Type /setblock x y z block_type into the console.
Example: /setblock ~ ~ ~ ender_chest will spawn a useful ender chest in your current location.
Teleport any character to any location Type /tp playername x y z into the console.
Example: /tp yourname 1 1 1 will teleport you into the void, or use your friend's name to send them there!
Teleport any character to the location of another character Type /tp playername differentplayername into the console.
Kill your character Type /kill into the console.
Kill another player Type /kill playername into the console.
Change the weather Type /weather weathertype into the console.
Note: Replace weathertype with clear, rain, thunder, or snow.
Change the time of day

Type /time set x into the console.
Tip: Replace x with 0 for dawn, 6000 for day, 12000 for sunset, or 18000 for the middle of the night.

Stop enemies from attacking Type /difficulty peaceful into the console.
Tip: replace peaceful with easy, normal or hard to make enemies hostile again.
Spawn any creature or enemy Type /summon creaturename x y z into the console.
Example: Typing /spawn llama ~ ~ ~ will cause a llama to show up right next to you.
Enchant any item instantly Type /enchant playername ID# level# into the console.
Example: Typing /enchant playername 35 3 will enchant the tool the user is holding so that it generates extra blocks whenever it is used to mine, dig or chop down trees.
Get free experience points Type /xp amount playername into the console.
Turns on creative mode Type /gamemode creative into the console.
Note: type /gamemode survival to switch back.
Fly Jump twice to start flying. Holding the jump button will make you fly higher, and holding the sneak button will make you fly lower.
Note: Creative mode must be turned on for flight to work.
Place any block, or get any item

With creative mode activated, open your inventory to access a list of every block, item, and material in the game.
Note: You can move any items you want onto your item bar, or select the survival inventory tab to place them in your personal inventory.

Turn on adventure mode Type /gamemode adventure into the console.

Minecraft PS3 Cheats and Minecraft PS4 Cheats

Minecraft cheats are only available in Minecraft: Java Edition and versions of the game that have received the Better Together update. This update created a uniform experience across compatible platforms, including the ability to use cheats.

Since the PlayStation versions of the game were not included in the Better Together update, it isn't possible to use cheats in these versions of the game.