How to enable cheat codes in Minecraft 1.19 and common commands (2022)

How to enable cheat codes in Minecraft 1.19 and popular commands, Instructions on how to enable and use cheat codes in Minecraft and a list of common control commands

Although Minecraft does not have cheat codes like other games, by using commands on the console, players can do anything in their Minecraft world.

From teleporting according to the weather to even spawning mobs, console commands can do pretty much anything. In this Minecraft cheat code guide, let's explore the fully upgraded list of control commands for Minecraft 1.19.

How to enable cheat codes in Minecraft 1.19

Minecraft offers different ways to enable cheat codes in both Bedrock and Java versions. While enabling cheat codes in Bedrock Edition is quite simple, with Java Edition, the process is quite complicated, depending on whether the playing world is new or existing.

Enable cheat codes in Minecraft Bedrock

In Bedrock Edition, players will have both the option to enable cheat codes during world creation, as well as after the world is created. When a new world appears, gamers will be able to change its settings.

Just scrolling down the Game Settings list , everyone will see a toggle called Activate Cheats . This will allow the player to enter commands and change some of the core features of the game.

How to enable cheat codes in Minecraft 1.19 and common commands (1)

Alternatively, if a player wishes to enable cheat codes in an existing world, the player can do so by accessing the list of created worlds.

Then click the Edit button with the pencil icon on the right right next to the world. Here, everyone will be able to change world settings. If you scroll down there will be an Activate Cheats toggle button . By turning it on, gamers can start using cheat codes.

While in creative mode, the player can also take any block from the game and fly around without Elytra.

Enable cheat codes in Minecraft Java

There are 2 ways to enable cheats in Java Edition, depending on whether the world is newly created or already existing.

How to enable cheat codes in Minecraft 1.19 and common commands (2)

New world

If you're creating a new world, you'll see an Allow Cheats: OFF / ON button during the setup process. If this feature is enabled, the world will forever have cheat codes in it. This only works if the world is new.

How to enable cheat codes in Minecraft 1.19 and common commands (3)

The world already exists

On the other hand, if the world already exists, the player won't be able to permanently activate the cheat code. A temporary method to enable them is to go to the Open to LAN option in the pause menu and enable cheats through that. When opening the world to LAN, the player will be able to use cheats. However, the feature resets if the player leaves and rejoins the world in the Minecraft 1.19 update.

How to enable cheat codes in Minecraft 1.19 and common commands (4)

How to enter Minecraft cheat codes

Whether entering a cheat code in Minecraft Java or Bedrock, note that every command in Minecraft must start with / , but using the console keyboard shortcut will automatically prefix it with / so you can start typing the command you want to use. use .

Minecraft commands are also case sensitive; therefore, uppercase letters are not allowed.

How to use cheat codes on PC - Minecraft Java

To use commands or cheats on PC, all you need to do is go to your Minecraft game and press the / key to open the console. In addition, players can enter cheat codes using the chat window.

For Java Edition (PC/Mac), Windows 10, Minecraft Education Edition, press the T key to open the chat window.

How to enable cheat codes in Minecraft 1.19 and common commands (5)

How to use cheat codes on Console - Minecraft Bedrock

The easiest way to run Minecraft cheat codes on Console is to use the chat window.

Press the D-Pad button (right) on the controller to enter the Minecraft cheat code on Xbox One.

Tap the chat button's help command at the top of the screen to enter the code in Minecraft Pocket Edition (PE)

Press the D-Pad button (right) on the controller to enter the Minecraft cheat code on PS4.

Press the right arrow button on the controller to enter the Minecraft cheat code on Nintendo Switch.

The most useful Minecraft console cheat codes/commands

Here are some of the most useful Minecraft commands and cheats. All content for a command is surrounded by { curly braces } or [ square brackets ] . The curly braces mean that the argument is required, while the square brackets mean that the argument is optional.

Command to fly to the sky

Minecraft has a massive map so many players prefer to fly rather than walk to save time. Flying in the sky will help the character move freely without being limited by the terrain and environment. There are actually many ways for players to fly in Minecraft in both Creative mode and Survival mode.

To fly in Minecraft's Creative mode, players just need to quickly press the jump button twice. Players can hold the jump button to fly higher or hold the crouch button to fly lower. Using the directional buttons to move in different directions and holding the sprint button will increase the character's flight speed.

If the player presses the quick jump button twice while flying, the character will fall down. Since everyone is in Creative mode, the character will not take any damage or damage.

How to enable cheat codes in Minecraft 1.19 and common commands (6)

For Survival mode in Minecraft, players have 2 ways to help the character fly into the air.

The first way is to use cheats. Open the in-game command box and type /ability @player mayfly true .

The second way is to use Elytra and rocket rocket to fly. Elytra is the only way for players to fly in Minecraft Survival mode without entering cheat codes.

It is a wing that can be found in End Cities in the item boxes in the End Ship's treasure room. But if you use Elytra alone, the character can only glide when jumping from a high position.

Gamers will need to equip a rocket that fires fireworks to really fly into the air. Fireworks can propel the character in any direction while using Elytra. Note that when using Elytra with firework rockets, Elytra will be damaged.

How to enable cheat codes in Minecraft 1.19 and common commands (7)


The help command displays a list of all commands on the control panel or provides information about a specific command. The player can use this to figure out the rest of the commands.

Syntax: /? [command]


The tp command allows to teleport the specified entity or entities to the specified destination.

How to enable cheat codes in Minecraft 1.19 and common commands (8)


  1. /tp {destination}
  2. /tp {location} [rotation]
  3. /tp {targets} {destination}
  4. /tp {targets} {entity}
  5. /tp {targets} {location} facing {facingLocation}
  6. /tp {targets} {location} facing entity {facingEntity} [facingAnchor]
  7. /tp {targets} {location} [rotation]

Destination is the name of a player (or location) to teleport to. Location or xyz is the xyz coordinate to teleport to.

FacingLocation is the xyz coordinate that the entity will face after being teleported. Targets or entity is the name of a player (or a place) to teleport.


The time command allows to check and change the time of day value.

Syntax: /time {add|query|set} {value}


Allows to choose weather or world, including: rain, thunder and snow.

Syntax: /weather {clear|rain|thunder} [duration]


Provide an item to the player.

Syntax: /give {player} {item} [count]


Spawns the specified entity or Minecraft mob in the specified location.

Syntax: /summon {entity} [position] [NBT data tag]


Killing your own character, adding another player's name will apply the command to them.

Syntax: /kill {target}


Finds the closest structure location of a specified type. Useful for finding all structures in the game, such as locating Villages.

Syntax: /locate {structureType}


Enchant player's items.

Syntax: /enchant {player} {enchantment ID} [level]


The xp command allows you to set, remove or test a player's XP. Syntax:

  1. /xp [add|set] {players} {amount} [points|levels]
  2. /xp query {player} {points|levels}

Command to enter player name

Here are the commands that save gamers from having to enter another player's full name. Use this command so you don't have to enter long lines like 'Sniper_Kitty_Bruv_91' every time someone joins your game.

  1. @p - nearest player
  2. @r - a random player
  3. @a - all players
  4. @e - all entities in the world.
  5. @s - myself

Clone command


Duplicating a selection of blocks to another location, useful when building a city space and wanting to duplicate multiple buildings to different areas. is the starting point and the ending point. And that's where the clone blocks come in.

Example: /clone 100 234-10 200 100 0 300 200 100

Difficulty command


Change the difficulty in the game. Replace the following part of the cheat with one of the following options:

  1. peaceful
  2. easy
  3. thường
  4. hard

Example: /difficulty peaceful

Effect command

/effect [seconds] [amplifier] [hideParticles]

Add status effects to targeted players. [seconds] , [ampli] and [hideParticles] are all optional conditions, so ignore them unless you want to change the length, strength of the effect, or choose whether the effect shows up as a particle. or not. If you want to remove the effect from the player, type /effect clear .

Example: /effect PCGamer water_breathing 30

Change game mode


Change the game mode for everyone in the session. Add the player's name at the end of the code to change the mode for different players. Replace with one of the following options:

  1. Survival
  2. Creative
  3. Adventure
  4. Spectator

Example: /gamemode Survival

Item Hold Order

/gamerule keepInventory true

Changed the rules of the game, if you die, you will keep all the items in your inventory. Replace true with false to disable the command.

Command to play sound


Play a specific audio file. This command is great if people want to use command blocks to play a sound when someone opens the door. Anyone will be delighted with a unique doorbell.

Example: /playsound minecraft:entity.elder_guardian.ambient voice @a

Check current world seed


Show the seed for their current world if you want to re-enter the seed from the beginning or share it with other players.

Set world appearance


World changes appear wherever the player is standing. If people don't want to do that it is also possible to put it in a predefined location /setworldspawn .

Example: /setworldspawn 100 80 0

What are the arguments and goals?

Besides the above cheat codes in Minecraft, players need to understand some common terms when using these commands.


Arguments are bits of information that appear after the instruction to determine the effect of the instruction. For example, with the cheat /gamemode creative , the command is /gamemode and the argument is creative , this means the player is asking the game to set the gamemode to creative.

How to enable cheat codes in Minecraft 1.19 and common commands (9)

Target (target)

A target is a type of argument in Minecraft that tells the game who (or what) the gamer wants the command to target. The following are the target arguments:

@p - nearest player

@r - random player

@a - all players

@e - all entities

@s - the entity that executes the command

For example, the command: /gamemode creative @a will set every player on the server to Creative Mode. If you replace @a with @r , it will set the game mode of a random player on the server.

Minecraft 1.19 Minecraft

Top Articles

Latest Posts

Article information

Author: Ray Christiansen

Last Updated: 09/14/2022

Views: 5953

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.