Forgot password
Enter the email address you used when you joined and we'll send you instructions to reset your password.
If you used Apple or Google to create your account, this process will create a password for your existing account.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Reset password instructions sent. If you have an account with us, you will receive an email within a few minutes.
Something went wrong. Try again or contact support if the problem persists.
Image via Mojang Studios

All Minecraft Cheat Codes & Commands List

So many commands!

Minecraft is one of my favorite relaxing pastime games, but sometimes, I just want to switch modes quickly or finish a tedious task. So, in this guide, I will give you some of my favorite cheat codes and commands, which will work on your PC, Xbox, Switch, and Mobile versions of Minecraft.

Recommended Videos

How to use Console Commands in Minecraft

To use console commands in Minecraft, check the Allow/Activate Cheats option when creating your world. The button to press now depends on the platform you are playing the game. Here's a list of what you'll need to press to access the console command menu:

  • Xbox: Press right on the D-Pad.
  • Nintendo Switch: Press the right direction button on your Joy-Con or right on the D-Pad of your Pro Controller.
  • PC/Mac (Windows 10 or Java): Press T or the forward slash (/) key.

If you're on a PS4, you can't enter commands. You can only change a few options and must have host privileges.

Minecraft Flying Command - How to fly in Minecraft

There is no direct command in Minecraft that will make you fly. By starting the game in Creative mode, flying is available by default, and you can turn it on by double-pressing the Space bar. If you're in Survival mode, you can still change the mode of the game using the "/gamemode creative" command. You can go into Spectator mode if you want to fly even faster (on PC). This requires you to press "F3 + N" at once and allows you to fly around freely and go through walls. You can scroll your mouse wheel up or down to increase or decrease the speed. This is the fastest way to get around other than using the teleport command.

Related: Best OneBlock Minecraft Servers

Minecraft Console Commands & Cheats List

Here's a list of commands that you should find useful in Minecraft. I find some of these especially useful when checking out new Minecraft Seeds and experimenting with different builds.

  • /weather [Type]
    • This will change the current weather. You can use clear, rain, or thunder as your different types. To use the command, type /weather followed by the type of weather you want to change your world to.
  • /atlantis
    • This command will change the amount of water in your Minecraft world.
  • /effect
    • You can use this command to add or remove status effects.
  • /fog
    • This command can add or remove fog in your game world.
  • /instantmine
    • This command will enable you to one-hit all blocks when mining them.
  • /falldamage
    • This command will either enable or disable fall damage on your game.
  • /freeze
    • The Minecraft freeze command will stop all monsters in your area. To use the freeze command, type G into chat or console.
  • /duplicate
    • With the item in your hand, type /duplicate into the chat or console, and the game will copy the item and give you another one in your inventory.
  • /locatebiome [biome name]
    • To use this command, Simply type in the command and scroll through the different biomes until you locate the one you want to find. You can then select it and be given coordinates to the nearest matching biome.
  • /help
    • If you want additional information on certain commands, use the help command.
  • /event
    • This command triggers events. Use it by typing /event followed by the name of the event you want to trigger.
  • /fill
    • You can use this command to fill parts of your Minecraft world with a certain block.
  • /enchant
    • The enchant command can be used to enchant items in Minecraft. To use the enchant command, type /enchant [Player] [Enchantment Type] [Level] into chat or console.
  • /superheat
    • The superheat command smelts all items that can be smelted in your inventory.
  • /waterdamage
    • This command enables or disables water damage.
  • /firedamage
    • This command enables or disables fire damage on your server.
  • /experience
    • The experience command can be used to give yourself or another player experience. To use the command, type /XP or /experience followed by player name and then the amount of XP. You can type @s to reference yourself in the command.
    • /difficulty
      • To use the difficulty command in Minecraft, type G followed by: easy, normal, hard, and peaceful.
    • /gamemode
      • Type G and then the type of game mode to use the command. You have four different options: adventure, creative, spectator, and survival.
    • /give
      • To use the given command, type /give followed by player name, item, and then the amount of the item you want to give.
    • /kill
      • To use the kill command, type /kill followed by the player name into chat or console.
    • /list
      • To use the command, type /list, and a list of players will appear.
    • /dropstore
      • This command will store all of your inventory items into a chest that spawns.
    • /instantplant
      • This command makes plants grow instantly to full size.
    • /ride
      • This command turns any mob near you or one you are facing into a mount.
    • /locate
      • To use the locate nearest structure command in Minecraft, you must type /locate and then the name of the structure you want to find. For example, if you want to find a village you would type /locate village.
    • /seed
      • This command will output your current seed number. To use the command, simply type /seed into chat or your console.
    • /summon
      • This command is similar to the give command, but you can summon an entity like a monster or animal instead. It will summon whatever you choose right where you are at, or you can add a position. To use the command, type /summon followed by the name of the monster or entity you want to summon.
    • /itemdamage
      • This command disables item damage on your server.
    • /camerashake
      • This command will shake your camera.
    • /deop
      • This command will remove operator status from players.
    • /tp
      • The teleport (or "tp") command is very useful. It will teleport you or someone else to specific coordinates. To use the command, type /tp name of the player and then the x, y, and z coordinates you want to teleport to. The Y coordinate will determine what block height you end up at. If you want to just teleport to your current height, you can use "~" in that spot instead of a specific number. This can also be used in either the X or Z spot if you want to maintain your current coordinate of either of those options.
    • /set time
      • To use the set time command in Minecraft, players must type /time set followed by a number or time of day. For example, if you want to change the current time to day, you would type /time set day into chat or console.
        • /time set [Type or #].
        • /time add [#].

    All Player Targeting Commands in Minecraft

    These can be added in place of the [Player] variable that you will see in many of the following commands.

    • @s - Targets yourself or the person executing the command.
    • @p - Closest player to you.
    • @r - Random player in your game.
    • @a - All players in your game.
    • @e - All entities in the game. These include animals and monsters.

    Related: Minecraft – Is CurseForge down?

    Minecraft Gamerule Commands List

    Minecraft also has a vast array of gamerule commands players can use to change various features in the game. Here's a vast list of some of the best gamerule commands to use in Minecraft.

    • /gamerule fireDamage false
      • Using this command will disable all fire damage on your server.
    • /gamerule doImmediateRespawn true
      • Using this command will allow players to spawn instantly without seeing the death screen in Minecraft.
    • /gamerule doEntityDrops false
      • Using this command will prevent non-mob entities from dropping items in the game.
    • /gamerule disableRaids true
      • Using this command will disable raid events where mobs will attack villages in Minecraft.
    • /gamerule announceAdvancements false
      • This command will disable all chat announcements for achievements in Minecraft.
    • /gamerule doFireTick false
      • Using this command will disable the spread of fire on your server and will cause fires to stay in place.
    • /gamerule doInsomni false
      • This command will disable the insomnia mechanic and prevent Phantoms from spawning in your server.
    • /gamerule doDaylightCycle false
      • This game rule command will disable the day and night cycle and freeze your game's current time. So, if it is night or day, it will remain either day or night until the command is reset.
    • /gamerule doMobSpawning false
      • This command will disable the spawning of mobs on your server.
    • /gamerule keepInventory true
      • This command will allow players to keep their entire inventory upon death.
    • /gamerule mobGriefing false
      • This gamerule command will prevent mobs such as Endermen and Creepers from destroying blocks in the game.
    • /gamerule spawnRadius (distance value)
      • This command will change the spawn distance for players on your server.

    Minecraft Enchantment Commands List

    Minecraft also offers a whole world of Enchanting opportunities, perfect if you're looking to create an RPG experience for yourself. Here are some of the commands, sorted in alphabetical order, that you can use to make Enchanting easier.

    • /enchant [Player name] [aqua_affinity] [Enchantment level]
      • Aquatic Affinity
    • / enchant [Player name] [fire_aspect] [Enchantment level]
      • Aspect of Fire / Aspect of Fire / Aspect of Burning
    • / enchant [Player name] [knockback] [Enchantment level]
      • Backspace
    • /enchant [Player name] [bane_of_arthropods] [Enchantment level]
      • Bane of the Arthropods / Nightmare of the Arthropods
    • / enchant [Player name] [respiration] [Enchantment level]
      • Breathing
    • / enchant [Name of player] [channeling] [Enchantment level]
      • Conductivity
    • / enchant [Player name] [vanishing_curse] [Enchantment level]
      • Curse of Disappearance
    • /enchant [Player name] [binding_curse] [Enchantment level]
      • Curse of Linkage
    • / enchant [Player name] [piercing] [Enchantment level]
      • Drilling
    • / enchant [Player name] [sharpness] [Enchantment level]
      • Edge / Sharpness
    • / enchant [Player name] [efficiency] [Enchantment level]
      • Efficiency
    • /enchant [Player name] [blast_protection] [Enchantment level]
      • Explosion protection
    • / enchant [Player name] [feather_falling] [Enchantment level]
      • Feather drop
    • / 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] [smite] [Enchantment level]
      • Hit / Punishment / Pounding
    • / 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] [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] [multishot] [Enchantment level]
      • Multi-shot
    • / 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] [sweeping] [Enchantment level]
      • Raging Edge / Sweep
    • / enchant [Player name] [mending] [Enchantment level]
      • Repair
    • / enchant [Player name] [silk_touch] [Enchantment level]
      • Silk Touch
    • / enchant [Player name] [thorns] [Enchantment level]
      • Thorns
    • / enchant [Player name] [unbreaking] [Enchantment level]
      • Unbreakable / Durability
    • / enchant [Player name] [riptide] [Enchantment level]
      • Water propulsion / Marine Current

    Check out some of our other awesome Minecraft guides. We at Pro Game Guides recommend checking out the following: Best Minecraft Mushroom Island Seeds and How to save a world in Minecraft.


    Pro Game Guides is supported by our audience. When you purchase through links on our site, we may earn a small affiliate commission. Learn more about our Affiliate Policy
    We have upgraded our commenting platform! Existing comments will be imported over the next few weeks.
    Author
    Image of Luka Rakočević
    Luka Rakočević
    Luka Rakocevic works as a full-time staff writer at Pro Game Guides and is a new-generation gamer. Backed with old-school gaming knowledge, his oldest gaming memories are on SNES, trying to beat Super Mario. Games are his big inspiration, and he frequently draws from that well to create new art. He prefers narrative-driven games like God of War, Killzone, Half-life, Uncharted and similar. Luka mainly writes science fiction in his free time. When he's not home banging away at his computer keyboard, you will most likely find him at a local pub or a metal concert in the middle of a mosh pit.
    Author
    Image of Andrew Vaughan
    Andrew Vaughan
    Andrew Vaughan is a Contributing Writer at Pro Game Guides that has written guides on popular RPGs and FPS survival titles for several years. Andrew Vaughan specializes in survival and roleplaying games and has been a lifelong gamer.