Minecraft Server Cheat Codes
A list of cheat codes in Minecraft.
Date: 2020-07-24 18:22:17
Minecraft has a giant bevy of cheat codes, and many of them will cut out the grind and tedium of the game. With them, you can play in survival mode yet still build like you're in creative mode and never have to worry about hunger, either. But what are these codes and how do you use them? Read on.
1. Enable cheat mode for your LAN game.
This is the simplest step. When you're generating a world, make sure you mark the checkbox named "Allow Cheats". If you don't have this setting toggled on, then all the cheat codes in this guide won't do anything.
2. Some special information about cheat codes.
An important thing to note before we get started are the cheat codes that target players. When you see this, you might be tempted to type your full name in to set yourself as the target. However, there is a much easier shortcut. Instead of typing your player name, simply enter @s as a substitute and it will automatically target you. As this guide is aimed for single player worlds, this is the only one you will be using.
For coordinates, these are expressed as x, y, and z. X is the distance east or west of the origin point, z is the distance south and north of the origin point, and y is the height from 0 to 255, where 0 is bed rock and 255 is the build limit.
You can also use the ~ or ^ notations to express coordinates relative to your current location. For example, ~5 ~ ~-5 will be 5 blocks east on the x axis, 0 blocks on the y axis, and 5 blocks north on the z axis relative to your position. The ^ notation is based on which direction you're looking, so ^5 ^ ^-5 will be 5 blocks too your left, 0 blocks upwards, and 5 blocks behind you.
However, the easiest way to find your current set of coordinates is to simply hit the F3 button to open the debug menu.
3. The Cheat Codes
In single-player, entering cheat codes is easy. Simply open the chat window and type them in. Here is a list of the cheat codes.
Kill yourself (or specified player)
Teleport yourself (or specified player) to the coordinates entered
/effect <player|entity> [duration]
Applies the effect to the specified player or entity, for an option duration in seconds. A list of effect codes is here
/effect clear <player|entity> [effect]
Clear all effects, or optionally just the specified effect, from the player or entity
Apply the enchantment to the specified player's selected item, at an optional level. A list of enchantment code is here
Adds the stated amount of experience points to the specified player. Put the word levels on the end to add experience levels instead
Produces a seed code so you can recreate your world later
/setworldspawn [x y z]
Set the world spawn location to the player's current position, or optional specified coordinates if entered
Sets the game mode type (use survival, creative, adventure, or spectator) for yourself or an optional player
Queries the value of a game rule, or amends it if an optional value is entered. A list of rule codes is here
Sets the difficulty level (use peaceful, easy, normal, or hard)
Sets the world game time, use 0 (Dawn), 1000 (Morning), 6000 (Midday), 12000 (Dusk), or 18000 (Night) as the value
/gamerule doDaylightCycle false
Turn off the day/night cycle, replace false with true to reactivate
Sets the weather type (use clear, rain, or thunder) for an optional duration in seconds
/gamerule doWeatherCycle false
Turn off weather changes, replace false with true to reactivate
Clones the blocks in the region between coordinates and , then places them with coordinates in the lower northwest corner
Adds item to player's inventory, in specified quantity if item is stackable. A list of item codes is here
/gamerule keepInventory true
Keep your inventory items after you die, replace true with false to reverse
/summon [x y z]
Spawns the entity at the player's location, or optional specified coordinates if entered. A list of entity codes is here
And that's it! That's all the cheat codes Minecraft has.
The best mods for Minecraft multiplayer and how to install them.
Vanilla Minecraft is a fine experience, but mods make any game better. That's especially true for Minecraft, where its sandbox nature makes it so Mods can be insanely diverse. From a total gameplay conversion, like ...
Take a look here to get a head start on your Minecraft server!
You've seen a ton of those massive build videos on Youtube, and you noticed that they're doing it in Survival mode. How? How do they get all these resources? How are they placing down hundreds of iron blocks while ...
How exactly does mob spawning work in Minecraft? How can you spawn-proof your home? Take a look at this guide to find out.
Mob spawning algorithms are some of the more complex background processes in Minecraft. It's incredibly obtuse and unknowable without diving into the code, but once you do, you'll be able to abuse them in a way that ...
A quick guide to the new Nether in and after update 1.16.
The Nether update has finally arrived to Minecraft, overhauling the hellish alternate dimension to something that plays completely differently from before. Here's a quick explanation on how you can approach hell- er, ...
The Nether in Minecraft has been largely untouched for quite a while now as the developers decide to focus on other things. However, that's finally about to end in the upcoming Nether Update. But what exactly is going to change about the game? Well, quite a lot, actually. Netherite Gear and ...
In the last few months there has been a wealth of Slender Man games released and this has caused me to look further in to the origins, myth and mystery that surrounds this supernatural creature, now don’t get me wrong whilst I love the paranormal and jump scares and playing horror games I’m ...
Over the Christmas period, while we were all stuffing our faces and drinking ourselves into the New Year, Mojang announced and pre-released a new patch for Minecraft: Minecraft 1.8.2 Pre 1. It’s the first patch to come out of the company since the Microsoft buyout a few months ago, so it’s par ...