Best Minecraft cheats and console commands

Whether you're playing Java or Bedrock Edition these Minecraft cheats can alter the game's mechanics
An undated image of Minecraft. — Minecraft
An undated image of Minecraft. — Minecraft

Minecraft is a world of endless possibilities, and enabling cheats can take your experience to the next level. Whether you're playing Java or Bedrock Edition, cheats can alter the game's mechanics, allowing you to change the world, your equipment, and yourself.

Read more: 150+ best and stylish PUBG New State Mobile names for boys and girls (2024)

Minecraft player cheats and commands

  • /kill [player]

Kill yourself (or specified player)

  • /tp [player]

Teleport yourself (or specified player) to the coordinates entered

  • /effect [duration]

Applies the effect to the specified player or entity, for an option duration in seconds. A list of effect codes is here

  • /effect clear [effect]

Clear all effects, or optionally just the specified effect, from the player or entity

  • /enchant [level]

Apply the enchantment to the specified player's selected item, at an optional level. A list of enchantment code is here

  • /experience add

Adds the stated amount of experience points to the specified player. Put the word levels on the end to add experience levels instead

Whether you're on Bedrock or Java Edition, speed up entering Minecraft cheats and commands by using these shortcuts:

  • @p = the nearest player to you
  • @r = a random player
  • @a = all players in the world
  • @e = all entities in the world
  • @s = you

Minecraft world and environment cheats and commands

  • /seed

Produces a seed code so you can recreate your world later

  • /setworldspawn [x y z]

Set the world spawn location to the player's current position, or optional specified coordinates if entered

  • /gamemode [player]

Sets the game mode type (use survival, creative, adventure, or spectator) for yourself or an optional player

  • /gamerule [value]

Queries the value of a game rule, or amends it if an optional value is entered. A list of rule codes is here

  • /difficulty

Sets the difficulty level (use peaceful, easy, normal, or hard)

  • /time set

Sets the world game time, use 0 (Dawn), 1000 (Morning), 6000 (Midday), 12000 (Dusk), or 18000 (Night) as the value

  • /gamerule doDaylightCycle false

Turn off the day/night cycle, replace false with true to reactivate

  • /weather [duration]

Sets the weather type (use clear, rain, or thunder) for an optional duration in seconds

  • /gamerule doWeatherCycle false

Turn off weather changes, replace false with true to reactivate

  • /clone

Clones the blocks in the region between coordinates and , then places them with coordinates in the lower northwest corner.

Minecraft Item and Mob cheats and commands

  • /give [quantity]

Adds an item to player's inventory, in a specified quantity if the item is stackable. A list of item codes is here

  • /gamerule keepInventory true

Keep your inventory items after you die, replace true with false to reverse

  • /summon [x y z]

Spawns the entity at the player's location, or optional specified coordinates if entered. A list of entity codes is here.

How to use Minecraft cheats and commands in Java Edition

To use cheats in Minecraft Java Edition, do the following:

  1. Open your Minecraft world.
  2. Click on the ‘Open to LAN’ button.
  3. Toggle the ‘Allow Cheats’ switch to the ‘ON’ position.
  4. Click on the ‘Start LAN World’ button.
  5. While in-game, press the ‘/’ key to open the chat menu.
  6. The chat menu will appear with a slash already typed in.
  7. Type your desired command or cheat in the chat menu.
  8. Use the exact syntax and formatting required for the command.
  9. Press the ‘Enter’ key to run the command.
  10. The command will be executed, and the result will be displayed in the chat menu.

How to use Minecraft cheats and commands in Bedrock Edition

To use cheats in Minecraft Bedrock Edition, even on consoles, follow these steps:

  1. Open your Minecraft world.
  2. Click on the ‘Settings’ button.
  3. Scroll down to the ‘Game’ menu.
  4. Toggle the ‘Activate Cheats’ switch to the ‘ON’ position.
  5. While in-game, press the ‘/’ key to open the chat menu.
  6. The chat menu will appear with a slash already typed in.
  7. Type your desired command or cheat in the chat menu.
  8. Use the exact syntax and formatting required for the command.
  9. Press the ‘Enter’ key to run the command.
  10. The command will be executed, and the result will be displayed in the chat menu.