Skip to main content

All the Minecraft cheats and console commands for console and PC

Playing Minecraft can be a huge blast, but what if we told you that playing the game with cheats is even more fun? Sure, you can add quite a bit of entertainment to your Minecraft experience with player mods and add-ons, but using not-so-secret console commands to enhance or alter the world of Minecraft can be just as thrilling. And whether you’re playing the game on a desktop PC, PlayStation, or Xbox, you’ll have access to these cool codes. 

So how do you go about altering your next Minecraft session with a couple of clever cheats? We’ve got the step-by-step instructions you’ll need for both console and PC versions of the popular title. 

How to enter console commands in Java Edition

The Open to LAN screen in Minecraft Java Edition.
Microsoft

If you’re running the Java Edition of Minecraft, enabling cheats is very simple. Start by creating a new world and make sure that the Allow Cheats option is set to On. Create your world and open the chat menu by hitting /. In this box, you can now begin entering any console commands to activate the cheat of your choice.

If you want to use cheats in an existing world, you can do so by going into the menu and selecting Open to LAN. From there you can toggle the Allow Cheats option.

How to enter console commands in Bedrock Edition

Minecraft on Chromebooks.
Mojang

On the Bedrock Edition, the process is slightly different. Create or load into a world and open the menu. Go to the Cheats tab and toggle them On. Now, just like in Java, you can open the chat menu and input / to start entering commands. If you’re playing with a controller, you will need to hit right on the D-pad and then select your cheat from a list of options or type using the digital keyboard.

All console commands

There are a ton of console commands, so here’s a comprehensive list of each one you can use and a description of what they do.

Game mode cheats

/gamemode 0 Switch to Survival mode
/gamemode 1 Switch to Creation mode
/gamemode 2 Switch to Adventure mode
/gamemode 3 Switch to Spectator mode
/tp [player] [x, y, z] Teleports the player to the command’s specific coordinates
/gamerule dofiretick false Fire does not spread
/ gamerule dodaylightcycle false Stop the day and night cycle in the game
/ gamerule keepinventory true When you die, you don’t lose anything from your inventory
/ gamerule domobloot false Creatures do not will drop items
/ gamerule domobspawning false Creatures will not appear again
/ gamerule dotiledrops false Stage blocks won’t drop items
/ gamerule mobgriefing false Creatures will not be able to interact with blocks
/ gamerule naturalregeneration false Prevents health regeneration

Player cheats

/ kill @r You will eliminate a random player
/ kill @e You will remove all entities
/ kill @a You will eliminate all players
/ kill @p You will eliminate the closest player
/ give [item] [quantity] Add the specified item and quantity to a player’s inventory
/ ride You will transform the creature you are looking at into a mount
/ instantmine It will take just one hit to destroy blocks and extract materials
/ freeze You will paralyze all creatures
/ falldamage Enable or disable fall damage
/ firedamage Turn fire damage on or off
/ waterdamage Enable or disable water damage
/ superheat You will transform all the items into their fused versions
/ instantplant Planted seeds will grow instantly
/ dropstore You will store all the items in your inventory in a trunk that appears next to you
/ itemdamage Prevents items and weapons from taking damage or wearing out
/ duplicate You will copy the equipped item and place it before you
/effect give [Player Name] 1 [seconds] [Effect Level] Provides the Speed effect to the indicated player, according to the chosen duration and level
/effect give [Player Name] 2 [seconds] [Effect Level] Provides the Slow effect to the indicated player, according to the chosen duration and level
/effect give [Player Name] 3 [seconds] [Effect Level] Activate the Mining Haste effect on the indicated player, according to the chosen duration and level
/effect give [Player Name] 4 [seconds] [Effect Level] Activates the Extraction Fatigue effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 5 [seconds] [Effect Level] Activates the Force effect on the indicated player, according to the chosen duration and level
/ effect give [Player Name] 6 [seconds] [Effect Level] Activates the Instant Heal effect on the specified player, according to the chosen duration and level
/ effect give [Player Name] 7 [seconds] [Effect Level] Activates the Instant Damage effect to the specified player, according to the chosen duration and level
/ effect give [Player name] 8 [seconds] [Effect level] Activates the Super Jump effect on the indicated player, according to the chosen duration and level
/ effect give [Player Name] 9 [seconds] [Effect Level] Activates the Nausea effect on the indicated player, according to the chosen duration and level
/ effect give [Player Name] 10 [seconds] [Effect Level] Activates the Regeneration effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 11 [seconds] [Effect Level] Activates the Resistance effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 12 [seconds] [Effect Level] Activates the Firefighting effect to the indicated player, according to the duration and level chosen
/ effect give [Player Name] 13 [seconds] [Effect Level] Activates the Water Breath effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 14 [seconds] [Effect Level] Activates the Invisibility effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 15 [seconds] [Effect Level] Will provide the Blind effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 16 [seconds] [Effect Level] Will provide the Night Vision effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 17 [seconds] [Effect Level] Will provide the Hunger effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 18 [seconds] [Effect Level] Will provide the Weakness effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 19 [seconds] [Effect Level] Will provide the Poison effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 20 [seconds] [Effect Level] Will provide the Decomposition effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 21 [seconds] [Effect Level] Will provide the Extra Hearts effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 22 [seconds] [Effect Level] Will provide the Absorption effect to the indicated player, according to the chosen duration and level
/ effect give [Player Name] 23 [seconds] [Effect Level] Will provide the Saturation effect to the indicated player, according to the chosen duration and level

Enchantment cheats

/enchant [Player name] [aqua_affinity] [Enchantment level] Aquatic Affinity
/enchant [Player name] [bane_of_arthropods] [Enchantment level] Bane of the Arthropods / Nightmare of the Arthropods
/enchant [Player name] [binding_curse] [Enchantment level] Curse of Linkage
/enchant [Player name] [blast_protection] [Enchantment level] Explosion protection
/ enchant [Name of player] [channeling] [Enchantment level] Conductivity
/ enchant [Player name] [depth_strider] [Enchantment level] Aquatic agility
/ enchant [Player name] [efficiency] [Enchantment level] Efficiency
/ enchant [Player name] [feather_falling] [Enchantment level] Feather drop
/ enchant [Player name] [fire_aspect] [Enchantment level] Aspect of Fire / Aspect of Fire / Aspect of Burning
/ enchant [Player name] [fire_protection] [Enchantment level] Fire protection
/ enchant [Player name] [flame] [Enchantment level] Flame / Fire / Incendiary Arrow
/ enchant [Player name] [fortune] [Enchantment level] Fortune
/ enchant [Player name] [frost_walker] [Enchantment level] Ice Cream Step
/ enchant [Player name] [impaling] [Enchantment level] Impalement
/ enchant [Player name] [infinity] [Enchantment level] Infinity
/ enchant [Player name] [knockback] [Enchantment level] Backspace
/ enchant [Player name] [looting] [Enchantment level] Loot / Plunder
/ enchant [Player name] [loyalty] [Enchantment level] Loyalty
/ enchant [Player name] [luck_of_the_sea] [Enchantment level] Luck marine / Luck of the seas
/ enchant [Player name] [lure] [Enchantment level] Lure / Attraction
/ enchant [Player name] [mending] [Enchantment level] Repair
/ enchant [Player name] [multishot] [Enchantment level] Multi-shot
/ enchant [Player name] [piercing] [Enchantment level] Drilling
/ enchant [Player name] [power] [Enchantment level] Power
/ enchant [Player name] [projectile_protection] [Enchantment level] Projectile Protection
/ enchant [Player name] [protection] [Enchantment level] Protection
/ enchant [Player name] [punch] [Enchantment level] Punch
/ enchant [Player name] [quick_charge] [Enchantment level] Quick charge
/ enchant [Player name] [respiration] [Enchantment level] Breathing
/ enchant [Player name] [riptide] [Enchantment level] Water propulsion / Marine current
/ enchant [Player name] [sharpness] [Enchantment level] Edge / Sharpness
/ enchant [Player name] [silk_touch] [Enchantment level] Silk Touch
/ enchant [Player name] [smite] [Enchantment level] Hit / Punishment / Pounding
/ enchant [Player name] [sweeping] [Enchantment level] Raging Edge / Sweep
/ enchant [Player name] [thorns] [Enchantment level] Thorns
/ enchant [Player name] [unbreaking] [Enchantment level] Unbreakable / Durability
/ enchant [Player name] [vanishing_curse] [Enchantment level] Curse of Disappearance

World cheats

/ time set 18000 You will change the time to midnight
/ time set 6000 You will change the time at noon
/ difficulty [peaceful/easy/normal/hard] You will change the level of difficulty to that indicated in the command
/ summon You will invoke the corresponding entity (a full list can be found here)
/ atlantis You will raise the sea level in the world
/ weather [clear/rain/thunder] You will change the world’s climate to the one indicated in the command
/seed Shows your world seed code

Editors' Recommendations

Topics
Jesse Lennox
Jesse Lennox loves writing, games, and complaining about not having time to write and play games. He knows the names of more…
All Starfield cheats and console commands
An astronaut stands on the moon in Starfield.

After a couple dozen hours with a game like Starfield, or even just a few if you're that kind of player, the allure of cheats will start to arise. Whether it's because you're short of Credits, want to make yourself invincible, or get a head start when starting a new character, cheats can help you squeeze more fun out of any game that allows them. Starfield is already built for mod support, but you don't have to go through the trouble of installing any if you just want to mess with the basics of the game by entering in some console commands. These commands will disable you from earning any achievements in the game, and you do so at your own risk since you could potentially break the game depending on how you use them, but otherwise are as simple to use as knowing the proper codes. Here are all the cheats and console commands in Starfield, and how to use them.
Can you enter console commands on Xbox?
Since Starfield is available on both PC and Xbox consoles, you may wonder if you have the option to use the same commands on your console version of the game. Unfortunately, at the time of writing, there is no way to open the console command menu on Xbox to enter any of these cheats. Perhaps a mod will be released in the future that enables this, but for now, all your cheating will have to be done on PC.
How to enter console commands on PC
Entering console commands in Starfield is done the same way as you would in any other game, which is by hitting the` key to open up the menu. Note that as soon as you do this, the game will warn you that entering any console command will lock you out of earning achievements as we mentioned earlier.

Once this menu is open, all you need to do is input a valid command to activate that function.
All console commands
There are dozens of console commands to pick from, so we will break them down into categories as best we can to help you locate what you're looking for easily.
Game breaking commands

Read more
The best Minecraft seeds for 2023
how to find a village in minecraft

When you spawn into a Minecraft world, it uses a seed number to generate … well, everything. This seed is the core code that builds the world and decides your spawn point in it. The cool part is that if you find a world you really like, you can copy, save, and share the seed. The result is a growing collection of very useful or interesting seeds that are perfect for players who want something new -- but not entirely random -- to explore. Down below are some of our favorites!

Note: These seeds are designed to work with the Minecraft Java edition. There’s no guarantee they will work with other versions of the game. However, you can sometimes switch to the Bedrock version using seeds up to 2147483649 and then subtracting or adding 4294967296 to Java seeds higher than 2147483649. Seeds higher than 4294967296 and negative seeds won’t work in Bedrock. We know; it’s weird, which is why it’s best to use the Java version whenever possible for this trick.
All-biome world
Seed: 1083719637794

Read more
All mounts in Minecraft Legends and how to get them
Four players stand together in the 4v4 PvP mode of Minecraft Legends.

In yet another genre-mixup following Minecraft Dungeons, Minecraft Legends brings the open-world survival and building game to the RTS genre. Unlike most traditional RTS games, where you control the action from a detached, overhead perspective, this game keeps you in the action by giving you a character to control on the field itself. To keep the action fast-paced, and make sure you can easily control and order your mobs around, giving your character a mount is essential. Just like in the original game that inspired it, there are multiple creatures you can use as mounts, and they all behave and function differently. While the world in Minecraft Legends isn't randomly generated, it can still feel overwhelming trying to find what you're looking for. Here are all the mounts you can ride in Minecraft Legends, what they do, and where to find them.
How to get every mount in Minecraft Legends

There are four different mounts you can tame and ride throughout your quest in Minecraft Legends. These include the horse, bird, beetle, and tiger. All you have to do to ride a new one is find it and press Swap Mount when near it, but finding them is the tricky part. Here's where each of them resides in the world, plus what makes them special.
Where to find the horse
You won't have to go looking for the horse since you begin the game with one. This is the classic mount and is made for getting you around the map much faster than on foot. The horse's special ability is being able to sprint indefinitely at a high speed.
Where to find the bird
A bird may not sound like a creature you could ride, and yet here we are. These rainbow-colored birds are quite small, but not hard to find in the Jagged Peaks biome. Keep an eye on your map for a clue as to when you're close to one since they will automatically be marked for you. Once you've mounted a bird, you will be able to jump higher than any other mount, plus slowly glide from any height by holding the jump button.
Where to find the beetle
Perhaps an even stranger choice for a mount, the beetle is much bigger than their real-life counterparts. These insects are native to the Jungle biomes, so venture into the trees to snag one. The Beetle has two special attributes, the first it shares with the bird which is being able to glide by holding jump in the air. The beetle's unique skill is that it can climb up any surface. So, while slow, it is very versatile and strategic.
Where to find the tiger
Now we're talking! If you want to play He-Man and ride your very own tiger, get yourself on a safari to the Dry Savanna biome to track one down. The tiger has the most simple ability, which is that it is simply the fastest mount you can get. However, this speed does come with a downside. Unlike the Horse, the Tiger doesn't have infinite stamina, so you will need to slow down eventually.

Read more