Are you looking for Minecraft cheat and console commands to make your time in your favorite world a little easier? Console commands allow you to teleport around the map, fill your pockets with rare resources, and manipulate the server with just a few keystrokes.
Though console commands are wonderful to know because you might find yourself wanting to switch modes quickly to finish a tedious task, they can disable your achievements.
There are a massive number of cheats & console commands to choose from, but in this article, we’ll tell you the ones which you really need to know. The following commands will work on your PC, Xbox, Switch, and Mobile versions of Minecraft.
How to use Console Commands in Minecraft?
To enable console commands in Minecraft, the first step is to ensure that you are playing on a server that allows console commands. If you are the one creating the server, you can enable this option during the setup process. If you are playing on another server, you will need to check whether console commands are allowed.
To access the command console menu, press the “/” key while playing the game on a PC. On other platforms, the process may vary. Once the command console is open, you can enter the cheat code that you want to use. The game will then execute the command, allowing you to zip around the map or give your friends free diamonds.
It is important to note that enabling cheats may disable achievements, so if you want to continue earning achievements, create a separate world with cheats disabled.
Shorthand Minecraft commands
Instead of typing in the individual player name(s) for the player prompt, you can use the following shorthand to select specific targets for your command:
- @p = the nearest player to you
- @r = a random player
- @a = all players in the world
- @e = all entities in the world
- @s = you
Best Console Commands in Minecraft
There are dozens of Minecraft cheat codes but we have picked some of the best ones that will add fun.
- Teleport a player to a specific location
- /tp [player] <x y=”” z=””></x>
- Give a player free experience points
- /experience add <player> <amount></amount></player>
- Change the difficulty of your game (Peaceful, Easy, Normal, or Hard)
- /difficulty <level></level>
- Change the weather
- /weather <type> [duration]</type>
- Give a player free items
- /give <player> <item> [quantity]</item></player>
- Create a mob at the select location
- /summon <entity> [x y z]</entity>
How to fly in Minecraft – Flying command
There is no direct command in Minecraft that will make you fly. However, you can change the mode of the game using the “/gamemode creative” command, and this will allow you to press jump twice to get you up in the air.
In case, if you want to fly even faster (on PC), you can activate Spectator mode. This requires you to press “F3 + N” at once and gives you the ability to fly around freely and go through walls. Moreover, by scrolling your mouse wheel up or down, you can increase or decrease the speed. This is the fastest way to get around other than using the teleport command.
All Console Commands and Cheats List
Here are all console commands and cheats available in Minecraft. They serve very niche purposes, but learning them all makes it easy to conquer your server.
|Provides detailed info about a specific console command
|Give a player a certain amount of a selected item
|/tp [TargetPlayer] x y x
|Move a player to a selected portion of the map
|Instantly kill your target
|Change the weather (Rain, Thunder, Snow)
|Switch your server to Creative Mode
|Switch your server to Survival Mode
|Change the time of day (0 for Dawn, 18000 for Night)
|Change difficulty (Peaceful, Easy, Normal, Hard)
|Display the code for your current seed
|Create the target object
|Increase the amount of water in your world
|Mine any object with one single click
|Enable or disable fall damage
|Enable or disable water damage
|Enable or disable fire damage
|Duplicate the item you are holding
|Store your inventory in a chest (Spawned automatically)
|Plants grow instantly
|/gamerule keepInventory true
|Keep all your items when you die
|/gamerule doDaylightCycle false
|Stops the day/night cycle
|Turns any mob you’re facing into a mount
|Turns all items into their smeleted form
|Weapons no longer break down
|/locate [location name]
|Gives you the coordinates for generated structures
|Removes spawn point for a player
|Attempts to connect to the WebSocket servers on the provided URL
|Revokes operator status for players
|Opens NPC dialogue for players
|Add or remove status effects
|Adds an enchantment to the player’s selected item
|Triggers an event for the specific object(s)
|Fills all or parts of a region with a specific block
|Add or remove the fog setting file
|Apply damage to entities
|Allows customization of a newly spawned entity
Minecraft Server Commands
There are also server commands in Minecraft that you can activate in the game. So, here are all the server commands that you can use on your server.
|ban <playername> [reason]
|Blacklists the name player name from the server so that they can no longer connect. Note: Bans supersede any whitelisting in place.
|ban-ip <ip-address | playername>
|Blacklists an IP address so that all subsequent connections. ons from it are rejected.
|address must be valid or the player’s name must be online.
|Displays the ban list. To display banned IP addresses, use the command “ban list ips”
|Revokes a player’s operator status.
|kick <playername> [reason]
|Forcibly disconnects playername from the server, displaying an optionalreason to them.
|Playername must be online.
|Shows the names of all currently-connected players (the same can be achieved when pressing tab)
|Always succeeds, even in a command block.
|Grants playername operator status on the server.
|Removes playername from the blacklist, allowing them to connect again.
|Removes ip-address from the IP blacklist, allowing players from that IP address to connect to the server.
|ip-address must be valid.
|Forces the server to write all pending changes to the world to disk.
|Disables the server writing to the world files. All changes will temporarily be queued.
|Enables the server writing to the world files. This is the default behavior.
|Gracefully shuts down the server.
|=”” remove=””> <playername>
|Adds or removes playername from the whitelist.
|Displays all players in the whitelist.
|Enables/disables the server’s use of a whitelist. Note: Server ops will alwaysbe able to connect when the whitelist is active, even if their names do not appear in the whitelist.
|Reloads the list of playernames in white-list.txt from disk (used when white-list.txt has been modified outside of Minecraft).
Gamerule Commands list
Minecraft also has a vast variety of gamerule commands that players are able to use to change various features in the game. Here is a vast list of gamerule commands.
- /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 nonmob 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 gamerule command will disable the day and night cycle and freeze your game’s current time in place. 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 destorying or griefing blocks in the game.
- /gamerule spawnRadius (distance value)
- This command will change the spawn distance for players on your server.