Minecraft Game Mode Cheat Code

In Single-Player mode press the 'T' or 'C' key to display the 'Commands' bar and then enter the following codes (without the quotes) to enable the corresponding effect. Note: the 'Allow Cheats' option must be set to 'On' when creating a new world for these to work. Change to Survival Mode: Type '/gamemode 0' Change to Creative Mode: Type.

Here is all known working commands and cheats in Minecraft right now. They can help you to enhance your game experience to the maximum.

List of Commands and Cheats

Introduction

Minecraft commands enable you to have a complete control of the game. There is so much you can do: copy a build, change the mode of the game, or play extra smart and even cheat a little bit, Minecraft console commands can help you in so many ways in your daily game. Plenty of different commands exist and they differ a lot in terms of how complex they are, but we have decided to overview those that are the most useful and will give you an upper hand in the game. Play Minecraft with your friends and see how they react when you demonstrate your newly gained mastery of the game.

How to Enter the Minecraft Console Commands

Just press the forward-slash key (/) and a small window will pop up. Enter the code, press enter and this will be enough to have your command activated.

Shorthand Code Commands for Minecraft

Below we give you some shorthand codes so that you do not need to type various player names. It will save you the trouble of typing names like “Sniper_Boar_Dev_34” each time someone joins in.

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

Minecraft Clone Command

  • /clone <x1> <y1> <z1> <x2> <y2> <z2> <x> <y> <z>

This command enables you to copy a selection of blocks and move it to your chosen location. It’s handy when you are building, e.g., a city are and want to have many identical buildings in different areas. Start with “<x1> <y1> <z1>”. “<x2> <y2> <z2>” is where you finish, and with “<x> <y> <z>” you point out where you wish the cloned blocks to be located.

For instance: /clone 100 234 -10 200 100 0 300 200 100.

Minecraft Difficulty Command

  • /difficulty <difficulty>

Its function is to change the in-game difficulty. Instead of the latter section of the code enter one of these:

  • peaceful.
  • easy.
  • normal.
  • hard.

For instance: /difficulty peaceful

Minecraft Effect Command

  • /effect <player> <effect> [seconds] [amplifier] [hideParticles]

This command adds a status effect to the selected player. The conditions “[seconds]”, “[amplifier]”, and “[hideParticles]” are not obligatory, so you can disregard them, however, you use them if you decide to change the length, or the strength of the effect, and you also need to decide if the effect shows as particles. When you decide that a player no longer needs an effect, just type “/effect <player> clear”.

For instance: /effect PCGamer water_breathing 30

Minecraft Enchant Command

  • /enchant <player> <enchantment ID> [level]

When you want an enchantment in addition to the item the player is holding, use this command. It can be enchantment you choose to have, they can be selected from a book or enchant table. Take a look at the list of Enchantment IDs.

For instance: /enchant PCGamer minecraft:smite 1

Minecraft Exp Modifier Command

  • /xp <amount> [player]

Grants a number of experience points to the targeted player. If you prefer to add levels (understandable, as it’s easier in case of enchanting) type “/xp <amount>L [player]”.

For instance: /xp 100L PCGamer

Change the Gamemode Command

  • /gamemode <mode>

This command is for changing the game mode. If you want to change the mode for a selected player, you need to add the player’s name at the end of the code. Instead of “” enter one of the options below:

  • Survival.
  • Creative.
  • Adventure.
  • Spectator.

For instance: /gamemode Survival

Minecraft Give Item Command

  • /give <player> <item> [amount]

Adds an item to the player’s inventory. You will need this if you want start a run having all of the diamond gear. Remember that the amount section is only applicable to stackable items. That means, you cannot have 100 diamond swords in one go, no matter how great it sounds. To see all of the IDs, check out the list here.

For instance: /give PCGamer diamond_sword 1

If a command doesn’t work, help is available here:

  • /help [command name]

It gives extra information regarding any console command. If the command you are trying is not working properly, enter the above command before the name of the command that doesn’t work and you will be given more details about how it is supposed to function.

For instance: /help kill

Minecraft Keep Inventory Command

  • /gamerule keepInventory true

This command enables you to keep all the items in your inventory even if you die. Changing “true” to “false” turns it off again.

Minecraft Kill Command

  • /kill

Use it to kill everything and everyone, even the player, i. e. yourself. If you wish to kill another player, you need to use “/kill <player>”, and if your target is a mob, use “/kill @e[type=mobType]”.

Minecraft Play Sound Command

  • /playsound <sound> <player>

Use this command to play a specific sound file. For example, it can be used to have a soft sound a doorbell every time someone opens a door. You can find all the sound file names here.

For instance: /playsound minecraft:entity.elder_guardian.ambient voice @a

How to Check the World Seed in Minecraft

  • /Seed

If you want to replay the seed from the start or pass it on to someone, this will show you the seed for their current world.

Set World Spawn in Minecraft

  • /setworldspawn

This works if you want to change the world spawn to the location where you are standing. It is also possible to set it to a location decided in advance with “/setworldspawn <x> <y> <z>”

For instance: /setworldspawn 100 80 0.

Stop Time from Changing

  • /gamerule doDaylightCycle false

This completely turns the daylight cycle off so it’ll always be the current time of day. To reenable the cycle, replace “false” with “true.”

Spawn a Mob

  • /summon <entity_name> [x] [y] [z]

Brings a mob to a designated location. Get rid of the “[x] [y] [z]” at the end and you can have the mob spawn on top of you if you wish. Be careful though – if you’re spawning the Wither have to be quick to get away to save your skin.

Minecraft Teleport Command

  • /tp [target player] <x> <y> <z>

It teleports the selected player to a location of your choice. Just imagine – you can teleport your friend up into the sky – wouldn’t it be fun?.

For instance: /tp PCGamer 100 0 10.

Change Minecraft In-Game Time

  • /time set <value>

Allows you to set the in-game time. You need to add one of the numbers listed below to alter the time of day according to you preference:

  • 0 – Dawn.
  • 1000 – Morning.
  • 6000 – Midday.
  • 12000 – Dusk.
  • 18000 – Nightist.

Minecraft Change Weather Command

  • /weather <clear/rain/thunder>

Just like the name prompts, this command changes the weather in the game. i.e. “/weather thunder” starts a violent storm with thunder. This command is fantastically useful if you’re targeting charged creepers.

This Minecraft tutorial explains how to switch to Creative mode with screenshots and step-by-step instructions.

Creative is a game mode that is available in all versions of Minecraft. Creative mode gives you unlimited resources, free flying and lets you destroy blocks instantly when mining. When you create a world in Minecraft, you can easily switch back and forth between Survival and Creative modes using the /gamemode command.

Let's explore how to switch the game mode to Creative using the /gamemode command.

Supported Platforms

The /gamemode command to switch to Creative mode is available in the following versions of Minecraft:

PlatformSupported (Version*)
Java Edition (PC/Mac)Yes (1.3.1)
Pocket Edition (PE)Yes (0.16.0)
Xbox 360No
Xbox OneYes (1.2)
PS3No
PS4Yes (1.14.0)
Wii UNo
Nintendo SwitchYes (1.5.0)
Windows 10 EditionYes (0.16.0)
Education EditionYes

* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.

Requirements

To run game commands in Minecraft, you have to turn cheats on in your world.

Command to Change to Creative Mode

  • Java
  • PE
  • Xbox
  • PS
  • Nintendo
  • Win10
  • Edu

Turn On Cheat Mode Minecraft

Command in Minecraft Java Edition (PC/Mac)

In Minecraft Java Edition (PC/Mac) 1.13, 1.14, 1.15 and 1.16, the syntax to change the game mode to Creative is:


In Minecraft Java Edition (PC/Mac) 1.8, 1.9, 1.10, 1.11 and 1.12, the syntax to change the game mode to Creative is:

Command in Minecraft Pocket Edition (PE)

In Minecraft Pocket Edition (PE), the syntax to change the game mode to Creative is:

or

Minecraft Gamemode Cheat Code

or

Command in Minecraft Xbox One Edition

In Minecraft Xbox One Edition, the syntax to change the game mode to Creative is:

or

or

Command in Minecraft PS4 Edition

In Minecraft PS4 Edition, the syntax to change the game mode to Creative is:

or

or

God Mode Cheat Minecraft

Command in Minecraft Nintendo Switch Edition

In Minecraft Nintendo Switch Edition, the syntax to change the game mode to Creative is:

or

or

Command in Minecraft Windows 10 Edition

In Minecraft Windows 10 Edition, the syntax to change the game mode to Creative is:

or

or

Cheat

Command in Minecraft Education Edition

In Minecraft Education Edition, the syntax to change the game mode to Creative is:

or

Minecraft cheat codes for pc

or

How to Enter the Command

1. Open the Chat Window

Minecraft Game Mode Cheat Codes

The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:

  • For Java Edition (PC/Mac), press the T key to open the chat window.
  • For Pocket Edition (PE), tap on the chat button at the top of the screen.
  • For Xbox One, press the D-Pad (right) on the controller.
  • For PS4, press the D-Pad (right) on the controller.
  • For Nintendo Switch, press the right arrow button on the controller.
  • For Windows 10 Edition, press the T key to open the chat window.
  • For Education Edition, press the T key to open the chat window.

2. Type the Command

In this example, we are going to change the gamemode to Creative using the following command:

Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.

Once the cheat has been entered, the game mode will be updated to Creative:

You will see the message 'Your game mode has been updated' appear in the lower left corner of the game window. Also, your health meter and hunger meter will no longer appear above the hotbar.

Now you are in Creative game mode in Minecraft! You will have unlimited resources and mobs will not attack you.

Other Game Mode Commands

You can use other gamemode commands in Minecraft such as:

Other Game Commands

You can use other commands and cheats in Minecraft such as: