When creating a new Minecraft world you’ll be prompted to choose whether or not to allow cheats. After selecting yes and loading up the world, you’ll need to press the “C” key to pull up the command bar, which is where you’ll be inputting all your cheats and commands.
Any command you enter in single player will need to be prefixed by forward slash (/); multiplayer commands will not work with this prefix. Now it’s just a simple case of typing in the desired command and hitting the “Enter” key.
Minecraft cheats and console commands
Provides more information on the given command.
/give @Player Item [Amount] [DataValue]
Used to give another player an item from your inventory. Example: /give @PCGamesN minecraft:planks 13 1. This would give PCGamesN 13 Spruce Wood Planks. This command is much simpler when giving single objects, but is useful for very specific trades.
/tp [TargetPlayer] x y z
Used to instantly transport yourself or another player to a specific location in the world. Using another player’s name in place of the coordinates will transport the target directly to said player’s location.
Kills your character, adding another player’s name will apply the command to them.
Allows you to choose the weather or your world. Options include: rain, thunder and snow.
Changes the gamemode to Creative mode, which allows player flight, unlimited resources and stops mobs attacking you.
Changes the gamemode to Survival mode, which means mobs will attack you and you’ll have to gather all resources the old-fashioned way.
/time set 1000
Sets the time to day. Replace “1000” with “0” for dawn, “6000” for midday, “12000” for dusk and “18000” for night.
Change difficulty to Peaceful
Changes difficulty to Peaceful mode. Replace “peaceful” with “easy”, “ normal”, or “hard” for more of a challenge.
How to find your world’s seed code
This will produce a code for your world, note it down so that you can load up an identical one in the future.
Keep inventory when you die
/gamerule keepInventory true
Ensures you don’t lose your items upon dying. To revert this, type “false” in place of “true”
/gamerule doDaylightCycle false
This will stop the game’s day/light cycle in it’s place, allowing you to live under permanent sunshine or moonlight. To resume the day/light cycle type in “/gamerule doDaylightCycle true”.
Instantly drops a desired creature or object into your world, especially handy for when you’re short a couple of tame ocelots.
Shoots a TNT block at where the player’s pointing.
Dramatically raises the world’s water level, submerging all but the highest mountains.
Teleports the player to where they’re facing
Mobs can’t deal any damage to you.
Turns the creature you’re facing into a mount.
One-click mining with any tool.
Stops mobs in their tracks.
Turns fall damage on and off.
Turns fire damage on and off.
Turns water damage on and off.
Turns all items into their smelted form.
No more waiting around for a planted seed to grow.
Stores all inventory items into a chest, which spawns nearby.
Weapons no longer receive damage or degrade.
Copies and drops the item stack that you have equipped.