How to Turn On Cheats in Minecraft, on Java and Bedrock
Cheats are switched on differently in each edition: Java uses a per-session Open to LAN trick, while Bedrock has a saved world toggle that disables achievements. Here is how both work.

Cheats are switched on differently in each edition: Java uses a per-session Open to LAN trick, while Bedrock has a saved world toggle that disables achievements. Here is how both work.
Yes, you can switch cheats on in Minecraft, but the route depends on your edition and on whether the world already exists. In Java Edition, a single-player world created without cheats can allow them temporarily through Open to LAN; in Bedrock Edition, you use the world's own settings toggle. Before you flip anything, remember that Bedrock treats cheats seriously: turning them on in a world switches achievements off for that world.
Can you turn cheats on in a world you have already started?
Usually, yes. Java players are not locked out of commands forever just because they unticked 'Allow Cheats' when generating the world. The LAN trick described below opens commands for the current session, which is enough to change the game mode, teleport home, recover lost items or test a command block idea. When you leave and reload, the world goes back to its original state, so you may need to repeat the process next time.
Bedrock is more direct. Open the world in the Edit menu, scroll to the Cheats section and turn on 'Activate Cheats'. The change is saved with the world rather than lasting for one sitting. That convenience comes with the achievement warning, so think twice before doing it in a long-running survival world you still hope to earn achievements in.
How do you enable cheats in Java Edition?
Load the world, press Esc, and choose 'Open to LAN'. On the screen that appears, click 'Allow Commands' (older versions label this 'Allow Cheats') so it reads ON, then select 'Start LAN World'. You do not actually need another player to join; opening the world this way simply changes your permissions while it stays loaded.
Back in the game you should be able to open chat and use commands such as changing the game mode or setting a world spawn point. If commands are still refused, check that you are in the world you opened to LAN and that you typed the command correctly, because the game gives similar error messages for a permissions problem and a simple spelling mistake.
How do you enable cheats in Bedrock Edition?
From the main menu, go to Play, find your world and choose Edit. In the Game settings there is a Cheats section with an 'Activate Cheats' toggle. The game may warn you that achievements will be disabled; confirm only if you accept that trade. You can also set this option while creating a brand-new world, which is the cleaner route if you know from the start that you want a command-enabled sandbox.
On consoles and mobile the wording and menu layout vary slightly, but the principle never changes: the setting lives with the world, and the host controls it. If you join somebody else's world, their cheat setting applies to you, and only players given operator permission can use the powerful commands.
What actually changes once cheats are on?
Cheats do not automatically make you invincible or drop you into Creative mode. What they grant is access. Hosts and operators can run commands to teleport, summon mobs, set the time, change gamerules, give items and switch game modes. Ordinary visitors to the world do not all gain those powers, which is why multiplayer worlds distinguish between members, visitors and operators.
It is worth separating two ideas that players often mix up. A 'cheat' in Minecraft's menu simply means command access; plenty of people use it for housekeeping, fixing bugs or running a family server fairly. The moment you use it to hand yourself diamonds is a choice you make afterwards, not something the toggle does on its own.
Can you turn cheats off again?
In Java, closing the world ends the LAN session, and with it the temporary command access. Nothing about the world file has been permanently changed. In Bedrock you can slide the toggle back off for future sessions, but you should not expect achievements to come back for that world; once a world has had cheats active, Bedrock generally keeps achievements disabled there.
If achievements matter to you, the safest experiment is a copied world. Make the copy, turn cheats on in the copy, and test whatever you like. Your original stays clean, and you still get to practise the command before using it anywhere important.
Do the same rules apply on servers and Realms?
Not quite. A dedicated server is controlled by its configuration and its operators list, so players cannot enable cheats for themselves from the pause menu. On Realms, the owner manages the world settings and decides who receives operator status. If commands fail on a server, the answer is almost always permissions rather than the world setting, and the fix is to ask the owner or an existing operator.
Used thoughtfully, cheats are one of Minecraft's best learning tools. They let you rehearse redstone, rescue a hardcore-adjacent disaster or stage a build without grinding for materials. Just decide in advance whether a world is a pure survival run or a sandbox, and you will never ruin your own rules by accident.
Frequently Asked Questions
Can I enable cheats in an existing Java world?
Yes. Open the world to LAN, set Allow Commands to ON and start the LAN session. The permission lasts only until you close the world, so you may need to repeat it next session.
Do cheats disable achievements?
On Bedrock, yes: activating cheats in a world disables achievements for that world, even if you later switch cheats off. Java has advancements rather than platform achievements, and using commands does not block them.
Does turning cheats on change my game mode?
No. The toggle only grants access to commands. You still have to run a command yourself if you want to switch between Survival and Creative.
Why can't I use commands in my friend's world?
Command access belongs to the host and to players given operator permission. In a world you joined, the owner must promote you before cheat commands will work.





