How to Enter Console Commands in Java Edition
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
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
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
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
Enchantment Cheats
- /enchant [Player name] [aqua_affinity] [Enchantment level] – Aquatic Affinity
- /enchant [Player name] [baneofarthropods] [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
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