Minecraft can be a daunting game for newcomers. From threatening mobs to thousands of collectible items, there's no shortage of ways for you to become overwhelmed by its blocky world. However, Mojang makes it easy to take full control of the landscape around you through the use of console commands.
Console commands are essentially cheat codes that allow you to teleport around the map, fill your pockets with rare resources, and manipulate the server with just a few keystrokes. Best of all, using console commands in Minecraft is surprisingly easy – here's how it works.
Looking for something in particular? Click the links below to jump to...
- How to Use Console Commands
- Admin Server Commands
How to Use Console Commands
Before you can start zipping around the map and giving all your friends free diamonds, you'll need to make sure you're playing on a server that allows console commands. If you're the one creating the server, you can simply enable this option during setup. If you're playing on another server, try pulling up the command console menu – this varies by platform, but can be performed on PC using the "/" key.
With the command console open, all you'll need to do is type in your cheat code and the game will take care of the rest.
Best Console Commands in Minecraft
Of course, pulling up the command console will only get you so far – you'll also need to know a few codes to enter in the dialogue box. Thankfully, some versions of Minecraft will give you a few suggestions as you begin typing in the command console, but we've pulled together some of the best cheat codes for your perusing:
- 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>
There are dozens of other cheat codes to discover in Minecraft, but these six should give you a fun way to start experimenting with the console command system. Remember – codes may vary slightly by platform, and you can only use these on servers that have enabled cheats.
All Console Commands and Cheats List
Have you mastered the above cheat codes? Here's a look at all console commands and cheats available in Minecraft – most of them serve very niche purposes, but learning them all will make it easy to conquer your server.
|/help [CommandName]||Provides detailed info about a specific console command|
|/give <player><item>[Amount]</item></player>||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|
|/kill [TargetPlayer]||Instantly kill your target|
|/weather WeatherType||Change the weather (Rain, Thunder, Snow)|
|/gamemode creative||Switch your server to Creative Mode|
|/gamemode survival||Switch your server to Survival Mode|
|/time||Change the time of day (0 for Dawn, 18000 for Night)|
|/difficulty [Setting]||Change difficulty (Peaceful, Easy, Normal, Hard)|
|/seed||Display the code for your current seed|
|/summon||Create the target object|
|/atlantis||Increase the amount of water in your world|
|/instantmine||Mine any object with one single click|
|/falldamage||Enable or disable fall damage|
|/waterdamage||Enable or disable water damage|
|/firedamage||Enable or disable fire damage|
|/duplicate||Duplicate the item you are holding|
|/dropstore||Store your inventory in a chest (Spawned automatically)|
|/instantplant||Plants grow instantly|
|/gamerule keepInventory true||Keep all your items when you die|
|/gamerule doDaylightCycle false||Stops the day/night cycle|
|/ride||Turns any mob you're facing into a mount|
|/superheat||Turns all items into their smeleted form|
|/itemdamage||Weapons no longer break down|
|/locate [location name]||Gives you the coordinates for generated structures|
|/clearspawnpoint||removes spawn point for a player|
|/connect||Attempts to connect to the WebSocket servers on the provided URL|
|/deop||Revokes operator status for players|
|/dialogue||Opens NPC dialouge for players|
|/effect||Add or remove status effects|
|/enchant||Adds an enchantment to the player's selected item|
|/event||Triggers an event for the specific object(s)|
|/fill||Fills all or parts of a region with a specific block|
|/fog||add or remove fog setting file|
Admin Server Commands
Now that you've created your own Minecraft server, it's time to add your own unique flair to it by implementing Minecraft server commands. With that said, here's a guide to using Minecraft server commands, as well as a complete list of all commands you can use in Minecraft.
How to Use Minecraft Server Commands
If you have ever played a multiplayer server before, you may be familiar with Minecraft server commands such as "/warp" or "/spawn" and things like that.
As an admin, you can do lots of things. The Vanilla servers don't offer many commands, but Bukkit supports all sorts of them in the form of plugins.
Since this guide is based on the Vanilla server software, we'll be using commands that are frequently used with it.
If you are in the game while initiating a command, you have to use a forward-slash "/" before typing it in. This tells the client that the text following it will be a command and not a chat message.
However, if you are using commands from the server software, the console will only accept commands without the slash "/", so you would just type it as is.
List of Useful Minecraft Server Commands
Here's a list of common commands that can improve your Minecraft experience:
How to Change the Gamemode of a Player in Minecraft
In the player spot, you will put the name of the person to whom you want to change the gamemode of, this could be yourself or another player on the server. In the next part, you will either put "0" which is Survival or "1" which is Creative. The brackets are not used. For example, a sample command would say: /gamemode 1 Carpetfizz which will change my game type to Creative mode.
How to Teleport a Player to Another Player in Minecraft
The player spot is the person you want to teleport and the target is the person whom you want them to teleport to. Again, this could be yourself. A sample command would look like: /tp Carpetfizz Plexator which will teleport me to the person named Plexator.
How to Give Items to Another Player or Yourself in Minecraft
In the player spot you will add the username of the player you want to give items to. This can either be yourself or other players. When using this command you cannot use the name of block, you must the ID of the block.
In the last part of this command you must enter the ammount of the item you want to give, bear in mind the maximum number of items in one 'stack' is 64 so your items may appear in more than one stack. When using this command the items will not be delivered into your inventory but will instead be dropped at your feet, as if you had dropped them. Because of this, be careful to stand on an edge or by Lava as your items may be lost.
An example of this command would be: /give Carpetfizz 1 64 This would give me one stack of 64 Stone which would appear on the ground infront of my character.
All Minecraft Server Commands
Here are all of the server commands that you can use on your server.
|ban <playername> [reason]||Blacklists the name playername from the server so that they can no longer connect. Note: Bans supersede any whitelisting in place.||Always succeeds.|
|ban-ip <ip-address | playername>||Blacklists an IP address so that all subsequent connecti.ons from it are rejected.||ip-address must be valid or playername must be online.|
|banlist [ips]||Displays the banlist. To display banned IP addresses, use the command "banlist ips"||Always succeeds.|
|deop <playername>||Revokes a player's operator status.||Always succeeds.|
|kick <playername> [reason]||Forcibly disconnects playername from the server, displaying an optionalreason to them.||Playername must be online.|
|list||Shows the names of all currently-connected players (the same can be achieved when pressing tab)||Always succeeds, even in a command block.|
|op <playername>||Grants playername operator status on the server.||Always succeeds.|
|pardon <playername>||Removes playername from the blacklist, allowing them to connect again.||Always succeeds.|
|pardon||Removes ip-address from the IP blacklist, allowing players from that IP address to connect to the server.||ip-address must be valid.|
|save-all||Forces the server to write all pending changes to the world to disk.||Always succeeds.|
|save-off||Disables the server writing to the world files. All changes will temporarily be queued.||Always succeeds.|
|save-on||Enables the server writing to the world files. This is the default behavior.||Always succeeds.|
|stop||Gracefully shuts down the server.||Always succeeds.|
|="" remove=""> <playername>||Adds or removes playername from the whitelist.||Always succeeds.|
|whitelist list||Displays all players in the whitelist.||Always succeeds.|
|="" off="">||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.||Always succeeds.|
|whitelist reload||Reloads the list of playernames in white-list.txt from disk (used when white-list.txt has been modified outside of Minecraft).||Always succeeds.|