All Minecraft Cheat Codes & Commands List (2024)

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

Table of Contents

How to use Console Commands in Minecraft

Minecraft Flying Command - How to fly in Minecraft

All Player Targeting Commands in Minecraft

Minecraft Gamerule Commands List

Minecraft Enchantment Commands List

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 awesomeMinecraftguides. 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

    All Minecraft Cheat Codes & Commands List (2024)

    FAQs

    All Minecraft Cheat Codes & Commands List? ›

    Adds the command /god and /godmode to enable god mode.

    What are all the cheat commands in Minecraft? ›

    Minecraft player console commands
    • /kill [player] Kills your character. ...
    • /tp [player] <x y z> ...
    • /effect <player|entity> <effect> [duration] ...
    • /effect clear <player|entity> [effect] ...
    • /enchant <player> <enchantment> [level] ...
    • /experience add <player> <amount> ...
    • /give <Player> <Item> [Amount]
    • /seed.
    Nov 22, 2023

    How do you enable God mode in Minecraft? ›

    Adds the command /god and /godmode to enable god mode.

    What are the op commands in Minecraft? ›

    Ops can use /clear, /difficulty, /effect, /gamemode, /gamerule, /give, /summon, /setblock and /tp, and can edit command blocks. Ops can use /ban, /deop, /kick, and /op. Ops can use /stop.

    What are all the Minecraft hacks? ›

    Player cheats
    / kill @rYou will eliminate a random player
    / kill @aYou will eliminate all players
    / kill @pYou will eliminate the closest player
    / give [item] [quantity]Add the specified item and quantity to a player's inventory
    / rideYou will transform the creature you are looking at into a mount
    34 more rows
    Mar 14, 2024

    What does @a mean in Minecraft? ›

    @a : selects all online players, alive or not. @r : selects one random living player unless the type parameter is specified. @e : selects all entities (players, cows, dropped items, etc.) @s : selects the executing entity, which can be changed with the /execute command.

    How do I activate God mod? ›

    Go to “New” and then “Folder”. Windows God Mode can be easily created as a central shortcut on the desktop: First right-click on a free space, select “New” and “Folder”. Step 2: The command line to activate Windows God Mode is: GodMode.

    How to be invincible in Minecraft command? ›

    If you need to do something extremely dangerous but don't want to die then just do /invincible command for let's say 100 minutes so you type in the command and boom your invincible for 100 minutes .

    How do you unlock God mode in real life? ›

    How to get yourself into the God mode
    1. Having full control over life.
    2. Following True North.
    3. Being healthy assertive.
    4. Getting enough sleep.
    5. The power of the sun.
    6. Spending time in nature.
    7. Regular exercise.
    8. Following a strict diet.

    How to spawn Ender Dragon command? ›

    Use the on-screen keyboard to type in /summon ender_dragon and then tap the right-facing arrow on the far-right side of the text box. Wait for the Ender Dragon to appear.

    What is the command Q in Minecraft? ›

    General Item Control/Management:
    1. Q – Drop Item.
    2. Ctrl + Q – Drop Whole Stack of items (Windows users only)
    3. Ctrl + Command + Q – Drop Whole Stack of items (Macintosh users only)
    4. E – Open Inventory.
    5. F – Swap Held Item(s) to Offhand.
    6. L – toggle Advancements.
    7. F5 – toggle perspectives (between Third Person and Rear-View)

    What are all the commands in Minecraft? ›

    Handy commands
    • /teleport [target player] <destination> Teleport yourself or another player to a specific location. ...
    • /give <player> <item> [amount] ...
    • /weather <clear/rain/thunder> ...
    • /time set <time> ...
    • /summon <entity> [x] [y] [z] ...
    • /kill [player] ...
    • /setworldspawn [x] [y] [z] ...
    • /locate <category> <thing>

    What is the @P command in Minecraft? ›

    @p. Selects the nearest player from the command's execution. If there are multiple nearest players, caused by them being precisely the same distance away, the player who most recently joined the server is selected. In Bedrock Edition, @p only selects players who are alive.

    How to use Minecraft cheats? ›

    To use a Minecraft command or cheat, all you need to do is hop into your Minecraft game and tap the "/" key to open up the console. Every command in Minecraft must start with a "/", but using this shortcut will automatically add the "/" prefix so you can just start typing the command you want to use.

    How to see all commands in Minecraft? ›

    The ↑ and ↓ keys can be used to view previously entered text, including all previously executed commands.

    Top Articles
    Latest Posts
    Article information

    Author: Catherine Tremblay

    Last Updated:

    Views: 5766

    Rating: 4.7 / 5 (47 voted)

    Reviews: 86% of readers found this page helpful

    Author information

    Name: Catherine Tremblay

    Birthday: 1999-09-23

    Address: Suite 461 73643 Sherril Loaf, Dickinsonland, AZ 47941-2379

    Phone: +2678139151039

    Job: International Administration Supervisor

    Hobby: Dowsing, Snowboarding, Rowing, Beekeeping, Calligraphy, Shooting, Air sports

    Introduction: My name is Catherine Tremblay, I am a precious, perfect, tasty, enthusiastic, inexpensive, vast, kind person who loves writing and wants to share my knowledge and understanding with you.