Minecraft
Browse all available cheats, codes, and secrets for Minecraft.
This page collects 3 codes for the PC release. Source-checked entries show their reference and check date.
- Developer
- Mojang Studios
- Publisher
- Mojang / Microsoft
- Released
- 2011
- Genre
- Sandbox, Survival
About Minecraft
Minecraft is Mojang's block-based sandbox game — the best-selling video game of all time. Its cheat surface depends entirely on the world you are playing in. If cheats are enabled at world creation, /gamemode, /give, /tp, /setblock and dozens of other commands are available; if cheats were not enabled, you cannot toggle them in Java Edition without external tools (Bedrock Edition lets you switch them on with an XP penalty).
The commands you see on CheatBook for Minecraft target the vanilla command set that ships with the game. They are safe for single-player worlds and for realms/servers where the owner has granted you operator status; they are not for use on servers where you are a regular member. Modded Minecraft (Forge, Fabric) exposes far more commands via its mods, and those are outside the scope of vanilla cheat listings.
Tips & tricks for Minecraft
Enable cheats after world creation (Bedrock Edition)
On Bedrock, you can enable cheats mid-game by opening Settings → Game and toggling "Cheats". The world will stop awarding achievements for the current save, but any commands you run afterwards will work. On Java Edition this is only possible if you Open the world to LAN with cheats enabled — a workaround that lasts until you close the session.
Use /gamerule keepInventory true before dangerous exploration
The single most useful command in survival Minecraft is /gamerule keepInventory true. It prevents you from dropping your items on death, which turns Nether trips and long cave dives from disaster-runs into normal exploration. Toggle it off if you want the pressure back.
Coordinate teleporting with /tp @s
Instead of memorizing coordinates, run /tp @s ~ ~50 ~ to jump 50 blocks straight up and get a bird's-eye view of your build. Use /tp @s <x> <y> <z> to jump to any point, and /tp @s @p to snap to the nearest player on your world.
All Cheats for Minecraft
Code (3)
Direct PC inputs and console commands for Minecraft.
Creative Mode
Switch to creative mode with unlimited resources and flying.
Code & instructions
Cheats (Allow Commands) must be on for the world. Open chat (T on Java) and type: /gamemode creative
Checked against learn.microsoft.com on 8 Nov 2026
Give Items
Give yourself items. Replace "diamond" with any item name and change the number for quantity.
Code & instructions
With cheats on, type: /give @s diamond 64 (format: /give <player> <item> [amount])
Checked against minecraft.net on 8 Nov 2026
Teleport
Teleport yourself or another player to specific coordinates.
Code & instructions
With cheats on, type: /tp <x> <y> <z> to move yourself, or /teleport <player> <x> <y> <z>
Checked against minecraft.net on 8 Nov 2026
Minecraft FAQ
Will using /gamemode creative disable achievements?
On Java Edition, using any command including /gamemode creative permanently disables advancements for that world. On Bedrock Edition, switching a world with cheats on will lock achievements for that save. Both platforms let you keep playing normally; you just will not earn the achievement badges.
Can I use these commands on a multiplayer server?
Only if the server has granted you operator (op) status. Regular players on public servers cannot run any of the commands listed here — they need an admin to op them, or the server needs to have opened the specific commands via a plugin.