Minecraft is one of those games that is destined to live on until the end of time. It can be quite complicated for anyone jumping in, so that's where Minecraft console commands and cheats come into play.

Advertisement

Ranging from simple options, like spawning items, to things you didn't even think were possible, such as changing the weather, cloning blocks, freezing time or even teleportation, it's a great way to experiment in the Overworld and let loose without the fear of causing major destruction - since these abilities are limited to specific places.

What's worth knowing ahead of time is that Console Commands are essentially the cheat codes for Minecraft. They're super handy and worth knowing – likewise, these guides on how to tame a fox in Minecraft and how to enable ray-tracing in the block-builder.

Anyway, sit back, relax and take the hard work out of crafting with these handy Minecraft commands and cheats. Head below for all the details.

How to use Minecraft commands

Minecraft Steve riding a camel
Minecraft. Mojang

Firstly, as with most mods, these cheats are only available on PC, so console players will have to grind the old-fashioned way. Secondly, these can only be used on worlds where cheats are enabled - you'll be asked this when you create a world, or open a single-player game to LAN and select 'Allow Cheats'.

More like this

With your cheat-enabled world ready and loaded, all you need to do is enter some commands now - with the first step to press the 'C' key to bring up the command bar.

The command bar is where you'll enter the commands, and each one must be prefixed by a forward slash (/). You'll also have to choose targets to be the recipients of your cheats - but rather than type out full names, you can use this shorthand target selector shortcut:

  • @p = nearest player
  • @r = random player
  • @a = all players
  • @e = all entities
  • @s = the entity executing the command

That's the basics - now you just need to enter your desired cheat with the following console commands.

What are the best Minecraft console commands?

A villager in Minecraft
A villager in Minecraft. Mojang

There are dozens of cheat codes to discover in Minecraft, but these five are a great place to start.

  • Teleport to a specific location - /tp [player] <x y z>
  • Give a player free experience points - /experience add <player> <amount>
  • Change the weather - /weather <type> [duration]
  • Give a player free items - /give <player> <item> [quantity]
  • Freeze selected mobs - /freeze

Read on to discover many more Minecraft console commands...

Minecraft player console commands

Minecraft Steve looking out over a ravine
Minecraft.

Kill

/kill [player]
Kills your character. If there are other players in your world, you can also target them by typing their name.

Teleport

/tp [player] <x y z>
Teleport yourself to specified coordinates in the world. again, can be used on another player by adding their name.

Status Effects

/effect <player|entity> <effect> [duration]
Applies the chosen effect to the specified player or entity, with the duration in seconds.

Clear Status Effects

/effect clear <player|entity> [effect]
Clears either all effects or just a specified effect from a player or entity

Enchantment

/enchant <player> <enchantment> [level]
Applies a specified enchantment to the chosen player's selected item, at an option of their choosing.

Experience

/experience add <player> <amount>
Adds the stated experience points to a specified player. Adding the the word levels at the end will add experience levels instead.

Help

/help [CommandName]
Provides more information on the selected command.

Give

/give <Player> <Item> [Amount]

Give another player a specified amount of an item in your inventory.

Minecraft World Console Commands

Minecraft with ray tracing
Minecraft with ray tracing. Nvidia

Seed code

/seed
Gives you a seed code so you can recreate your world later.

Set world spawn location

/setworldspawn [x y z]
Set the world spawn location either to the player's current position or a set of entered coordinates.

Change game mode

/gamemode <type> [player]

Change the game mode type to either survival, creative, adventure, or spectator.

Change difficulty level

/difficulty <level>
Change the difficulty level to either peaceful, easy, normal, or hard.

Change world time

/time set <value>
Change the world game time with the following values: 0 = Dawn, 1000 = Morning, 6000 = Midday, 12000 = Dusk, or 18000 = Night.

Stop day/night cycle

/gamerule doDaylightCycle false
Turn the day/night cycle off, and change false to true to restart it.

Weather

/weather <type> [duration]
Change the weather, with the type as either clear, rain, or thunder and an optional duration in seconds.

Turn off weather changes

/gamerule doWeatherCycle false
Turn off weather changes, replacing false with true once again to reactivate.

Clone blocks

/clone <x1 y1 z1> <x2 y2 z2> <x y z>
Clones the blocks between coordinates <x1 y1 z1> and <x2 y2 z2>, and place them at coordinates <x y z>.

Atlantis mode

/atlantis

A creative one this one - raise the water level in your world to imitate Atlantis.

Change fall damage

/falldamage
Turn fall damage on and off.

Fire damage

/firedamage
Turn off and on fire damage.

Water damage

/waterdamage
Change whether water damage is enabled

Instant plant

/instantplant
Planted seeds grow instantly.

Instant mine

/instantmine
Enables one-click mining.

Minecraft Item and Mob commands

Two foxes sleeping in Minecraft
Minecraft.

Add to Inventory

/give <player> <item> [quantity]
Adds a specified item to the player's inventory, in the chosen quantity if possible.

Keep Inventory after death

/gamerule keepInventory true
You do not lose your inventory items after dying. Again, replace true with false to undo.

Summon entities

/summon <entity> [x y z]
Spawns the mod or other entity at the player's location, or chosen coordinates.

Store items

/dropstore
All inventory items are stored in a newly spawned chest.

Item damage

/itemdamage
Weapons no longer take damage or degrade.

Duplicate

/duplicate
Copies the equipped item stack.

Smelt item

/superheat
Smelts selected items.

Ride

/ride
Turns the selected creature into a mount.

Freeze

/freeze
Freezes selected mobs.

Listen to our One More Life podcast, subscribe to our free newsletter and follow us on Twitter for all the latest gaming intel.

Looking for something to watch? Check out our TV Guide or Streaming Guide.

Advertisement

Try Radio Times magazine today and get 10 issues for only £10 – subscribe now. For more from the biggest stars in TV, listen to The Radio Times Podcast.

Advertisement
Advertisement
Advertisement