Minecraft: Cheat Codes Minecraft guide, tips
Cheat codes: how to use them? All Universal codes, Network codes, Minecraft Java Edition, Windows 10 Edition
Last update: 12 July 2020
On this page of our Minecraft guide you will find cheat codes. They can make your gameplay more varied or much easier.
Using cheats
If you want to use cheat codes you have to open the command console first and to do so you have to press the T key.
The code must always be preceded by a slash (/).
Remember that the codes will only work if the option to use them is on - you can change it in the world's options.
Universal codes
In order to use universal commands, you must specify the object on which you want to execute them.
- /difficulty <level name> - changes difficulty level;
- /locate <ID> - shows coordinates of the selected structure;
- /summon [amount] - summons mob;
- /effect give/clear <player name> <effect> - adds or removes a specific effect;
- /weather <weather type> - allows you to summon any weather;
- /clear [target] [object] [metadata] [max quantity] [data tag] - removes the object from the specified character equipment;
- /clone <x1> <Y1> <Z1> <x2> <y2> <z2> <x> <y> <z> [masking mode]- cloning mode] - allows to copy blocks;
- /enchant <player name> <spell id> [spell level] - allows you to add an enchant to the selected item;
- /experience <add / set> <Player > < quantity > <points / levels> - affects the amount of experience a character has;
- /gamemode <type> - game mode change;
- /give <player> <Item> [quantity] - with this code you can summon any item;
- kill (name) - kills the designated mob;
- setworldspawn [x] [y] [z] - it allows you to choose a spawn place in the world;
- /playsound <sound> <player> [item] [volume] [tone] [minimum volume] - allows you to play the selected sound;
- /stopsound <player> [source] [sound] - turns off the sound;
- /tp [object name] <target> - teleports to a designated location;
- /timeset <value> - sets the time in game;
- /gamemode <mode> [player] - allows you to change the game mode during gameplay;
- /xp <add / set> <player> < quantity > <points / levels> - allows you to manage a character's experience.
Network codes
These codes are great in case.
- /deop <player name> - allows to remove operator status from selected player;
- /op <player name> - gives selected person operator status;
- /gamerule <rule> [value] - modifies the rules of the game;
- /say <message > - message on general chat;
- /tell <player name> - message to selected player;
- /trigger <target> [<add / set> <value>] - target modification.
Minecraft Java Edition
Codes only available in the Minecraft Java Edition.
- /data - modifies data properties of blocks;
- /defaultgamemode <mode> - sets the default game mode;
- /seed - shows world seed ID;
- /forceload <add / remove> <x1, z1> [x2, z2] - modifies load areas;
- /recipe <give / take> [player name] <item> - any recipe becomes active;
- /worldborder <add / set> <distance> [time] - sets the boundary of the world.
Windows 10 Edition
Codes only available in the Windows 10 Edition version of the game.
- /setmaxplayers - sets the maximum number of players;
- /alwaysday - makes no night in the game;
- /daylock - allows you to modify the day;
- /save - allows to manage saves;
- /toggledownfall - affects weather phenomena.