How to enable cheats in an existing Minecraft world
You can turn on cheats (commands) in a world you already created. In Bedrock Edition, open the world's settings and switch Cheats on. In Java Edition, open the world to LAN with commands allowed; this works for the current session only. Back up your world first, especially in Bedrock, where turning cheats on permanently disables achievements for that world.
Bedrock Edition (Windows, consoles, mobile)
- In the world list, select the edit (pencil) icon next to your world.
- Go to the Cheats section.
- Turn on Activate Cheats and confirm the warning about achievements.
- Load the world and press T or / to type commands such as
/gamemode creative.
Java Edition
- Load the world and press Esc.
- Select Open to LAN.
- Turn on Allow Cheats (called Allow Commands in newer versions).
- Select Start LAN World. You can now use commands.
Cheats stay on until you quit the world. To use commands again later, repeat the steps. Making cheats permanent in Java requires editing the world's level.dat file with an external NBT editor, so only try this on a backup.
Useful commands
/gamemode creativeor/gamemode survival/time set day/weather clear/give @s minecraft:diamond 64/tp @s ~ ~10 ~
FAQ
How do I switch to creative mode if cheats are off?
Enable cheats first with the steps above, then use /gamemode creative.
What is Gamemode 1?
An older shorthand for creative mode. Newer versions use names such as /gamemode creative.
Will cheats get me banned?
Commands in your own world are an official feature. Using hacked clients on public servers is different and can lead to bans.