All Minecraft cheats and commands to control your world (2024)

All Minecraft cheats and commands to control your world (1)

Jump to:

  • Player cheats
  • World and Environment cheats
  • Item and Mob cheats

Minecraft cheats and commands can be used to alter features of your world and make things easier, such as changing the time of day, enchanting gear, or teleporting around. If you've got cheats enabled in your world, you can open the chat box and start entering commands to make the changes you want. These cheat features are available for both Java and Bedrock Editions of Minecraft, so you can even use console commands on consoles and not just PC. Below, we've got everything you need to know about Minecraft cheats and commands for Java and Bedrock, including how to enable them in your world, how to enter them, and a few lists of useful commands to try out.

How to use Minecraft commands and cheats in Java Edition

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

  1. Start by choosing to create a new Minecraft world.
  2. On the 'Create New World' page, click on "Allow Cheats" so that it's toggledon.
  3. Generate and enter the world.
  4. Once you've loaded in, press the forward slash key (/) to open the chat menu with a slash already in the text box.
  5. Type a command and press enter to run it. You can also use the up and down arrow keys to scroll through previous commands to re-enter them.

All Minecraft cheats and commands to control your world (2)

If you haven't generated your world with cheats enabled, or you want to enable cheats on an existing world, you need to open the game menu, choose 'Open to LAN', then toggle 'Allow Cheats' to on. Click 'Start LAN World' to properly enable you to enter Minecraft commands and cheats. Do note that you'll have to follow these steps to enable cheats every time you log back into that Minecraft world, as the cheats won't stay enabled after you stop playing.

How to use Minecraft commands and cheats in Bedrock Edition

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

  • Create a new single-player world.
  • Go to the Cheats tab on the 'Create New World' menu and turn Cheats on. Doing this will permanently disable the ability to unlock achievements in Bedrock Edition, even if you later turn cheats off.
  • Generate and enter the world.
  • Once you've loaded in, press right on the D-pad on your controller.
  • Click the '/' icon and choose a Minecraft command from the list or open the on-screen keyboard to begin typing commands - make sure you start each one with a '/'.
  • With the command entered - you'll see it at the bottom of the screen - press 'X' to run the command.

All Minecraft cheats and commands to control your world (3)

Minecraft The Wild update

All Minecraft cheats and commands to control your world (4)

Find out everything included in the Minecraft The Wild update here!

If you're playing Bedrock Edition using a keyboard, you enter Minecraft commands and cheats much in the same way as Java Edition. When you're in a world with cheats enabled, press '/' to bring up the chat menu already with a slash in the text box. Now type in your command and press enter to run it.

If you've already started a game and want to enable cheats, you can do this from the Settings menu, although you must be the creator of the world you're in. With Settings open, scroll down to the 'Game' menu and then scroll down to 'Activate Cheats'. You can turn this on to enable cheats or off to disable them, but be aware that disabling cheats will not re-enable achievements for that world.

All Minecraft cheats and commands to control your world (5)

Minecraft player cheats and commands

  • /kill [player]
    • Kill yourself (or specified player)
  • /tp [player] <x y z>
    • Teleport yourself (or specified player) to the coordinates entered
  • /effect <player|entity> <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 <player|entity> [effect]
    • Clear all effects, or optionally just the specified effect, from the player or entity
  • /enchant <player> <enchantment> [level]
    • Apply the enchantment to the specified player's selected item, at an optional level. A list of enchantment code is here
  • /experience add <player> <amount>
    • 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 to quickly to select specific targets for your command:

  • @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

For coordinates, these are expressed as x, y, z, where x is the distance east (+) or west (-) of the origin point, z is the distance south (+) or north (-) of the origin point, and y is the height from -64 to 320, where 62 is sea level. You can also use tilde (~) or caret (^) notation with a number to express relative coordinates offset from your current position, with the notation by itself representing ~0 or ^0 ie no offset. Tilde offsets are based on the world coordinates, so ~5 ~ ~-5 would be +5 blocks on x (east), 0 blocks on y (same height), and -5 blocks on z (north). Caret offsets are based on the direction the player's head is facing along left, upward, and forward axes, so ^5 ^ ^-5 would be 5 blocks left, 0 blocks upward (same height), and 5 blocks backward.

  • /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 <type> [player]
    • Sets the game mode type (use survival, creative, adventure, or spectator) for yourself or an optional player
  • /gamerule <rule> [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 <level>
    • Sets the difficulty level (use peaceful, easy, normal, or hard)
  • /time set <value>
    • 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 <type> [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 <x1 y1 z1> <x2 y2 z2> <x y z>
    • Clones the blocks in the region between coordinates <x1 y1 z1> and <x2 y2 z2>, then places them with coordinates <x y z> in the lower northwest corner

All Minecraft cheats and commands to control your world (6)

Minecraft Item and Mob cheats and commands

  • /give <player> <item> [quantity]
    • Adds item to player's inventory, in specified quantity if 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 <entity> [x y z]
    • Spawns the entity at the player's location, or optional specified coordinates if entered. A list of entity codes is here

Those should be more than enough Minecraft cheats to let you mess around in your worlds to your heart's content. If you need any more assistance with using any of these commands, then simply type /help [command] for additional information and guidance.

Minecraft cheats | Best Minecraft servers | Minecraft Realms | Best Minecraft seeds | Best Minecraft mods | Best Minecraft shaders | Best Minecraft skins | Best Minecraft texture packs | Play Minecraft for free | Minecraft Forge | Minecraft The Wild update | Minecraft Allay | Minecraft frogs

Sign up to the GamesRadar+ Newsletter

Weekly digests, tales from the communities you love, and more

All Minecraft cheats and commands to control your world (7)

Iain Wilson

Guides Editor

Iain originally joined Future in 2012 to write guides for CVG, PSM3, and Xbox World, before moving on to join GamesRadar in 2013 as Guides Editor. His words have also appeared in OPM, OXM, PC Gamer, GamesMaster, and SFX. He is better known to many as ‘Mr Trophy’, due to his slightly unhealthy obsession with amassing intangible PlayStation silverware, and he now has over 550 Platinum pots weighing down the shelves of his virtual award cabinet. He does not care for Xbox Achievements.

With contributions from

  • Will SawyerGuides Writer
  • Joel FraneyGuides Writer

More about minecraft

After spending 2 years setting 17 straight world records, this Minecraft speedrunner is finally "taking a break" following an unbelievable "near flawless" runMinecraft just made an invisible change that might just be a game-changer for mods: "They made modding like 20x easier"


Elden Ring: Shadow of the Erdtree is the highest-rated release of 2024 so far, beating JRPG hit Final Fantasy 7 Rebirth and roguelike darling Hades 2
See more latest►

See comments

Most Popular
How to complete the Destiny 2 Encoded Log quest in the Well of Echoes
How to smash Destiny 2 Planetary Assimilation Pistons with the Piston Hammer
How to get Destiny 2 Memory Vestiges of Light and Darkness
How to unlock the Destiny 2 Facet of Justice Fragment
How to get all Destiny 2 Prismatic Fragments
How to unlock Diablo 4 Pets and what they do
How to get the Destiny 2 Facet of Grace Fragment
How to get the Destiny 2 Facet of Mending Fragment
How to complete the Destiny 2 Alone in the Dark quest and find Ghosts
Diablo 4 March of the Goblins and Mother's Blessing explained
FC 24 Season 7 Ladder Players list and how to unlock them all
All Minecraft cheats and commands to control your world (2024)


Top Articles
Latest Posts
Article information

Author: Francesca Jacobs Ret

Last Updated:

Views: 5361

Rating: 4.8 / 5 (68 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Francesca Jacobs Ret

Birthday: 1996-12-09

Address: Apt. 141 1406 Mitch Summit, New Teganshire, UT 82655-0699

Phone: +2296092334654

Job: Technology Architect

Hobby: Snowboarding, Scouting, Foreign language learning, Dowsing, Baton twirling, Sculpting, Cabaret

Introduction: My name is Francesca Jacobs Ret, I am a innocent, super, beautiful, charming, lucky, gentle, clever person who loves writing and wants to share my knowledge and understanding with you.