Ever spent three hours digging for diamonds only to fall into a lava pool and lose all your gear? Or spent weeks building a base only to have a creeper blow half of it up right before you save? We’ve all been there, and that’s exactly why knowing how to enable Minecraft cheats can turn a frustrating gaming session into a fun, stress-free experience. You don’t have to feel guilty for using them either – cheats are built into the game by Mojang for players who want to skip the grind, test builds, or fix mistakes that would otherwise ruin hours of work. This guide covers every method for turning on cheats, no matter if you’re playing on Java Edition, Bedrock, a private realm, or a shared server.
How to Enable Minecraft Cheats for New Single-Player Worlds
The easiest time to turn on cheats is right when you create a new world, because you won’t have to edit any existing files or adjust temporary settings later. The process varies slightly between Java and Bedrock editions, but both only take a few clicks to complete.
For Java Edition, open your launcher and select “Singleplayer”, then click “Create New World”. Look for the “Allow Cheats” toggle on the right side of the screen, right below the game mode selector. Flip it to “On”, adjust any other world settings you want (like seed or difficulty), then click “Create New World” again to start playing. Always back up your world before adjusting cheat settings, even for new saves, to avoid accidental data loss if something goes wrong.
For Bedrock Edition (which covers console, mobile, and Windows 10/11 versions), click “Create New” from the main menu, then select “Create New World”. Scroll down the left-hand settings menu until you find the “Cheats” tab, then flip the “Activate Cheats” toggle to on. You’ll get a pop-up warning that achievements will be disabled for this world, which you can confirm to proceed. I usually toggle this on before I start a new creative build world, so I can fly and grab any block I need without switching modes later.
How to Turn On Cheats for Existing Single-Player Worlds
We’ve all been in the situation where you’re 20 hours into a survival world, you lose all your best gear to a stray enderman, and you just want to spawn it back instead of grinding for hours. You don’t have to start a new world to use cheats, and the process for existing saves is almost as simple as for new ones.
For Java Edition, go to the singleplayer world selection screen, highlight the world you want to edit, then click “Edit” in the bottom left corner. Select “Open to LAN”, then flip the “Allow Cheats” toggle to on, and click “Start LAN World”. You’ll see a message in chat confirming the LAN world is running, and you’ll now have access to all cheat commands for the rest of your play session. Cheats enabled via LAN mode will stay active until you close the world, so you’ll have to repeat this process every time you open the save if you want to keep using cheats. If you don’t want to go through this step every time, you can use a free NBT editor tool to modify your save file’s allowCheats flag to true permanently, just be extra careful when editing save files to avoid corruption.
For Bedrock Edition, load into your existing world, then open the pause menu and select “Settings”. Scroll down to the “Game” tab, then find the “Cheats” section and flip the toggle to on. You’ll get the same achievement warning as with new worlds, and cheats will stay enabled for this save permanently unless you toggle it back off later. One thing to note: once you enable cheats on an existing Bedrock world, you won’t be able to earn vanilla achievements on that save anymore, so make a copy of your world before you toggle cheats on if you care about unlocking all in-game milestones.
Enabling Cheats for Realms and Multiplayer Servers
If you play on a shared realm or private server with friends, you can still use cheats, but there’s one big caveat to remember first. You can only enable cheats on a realm or server if you have owner or admin permissions. Regular players can’t toggle cheat settings on their own, for obvious security reasons.
For Minecraft Realms, open the Realms menu, click the wrench icon next to the realm you want to edit, then select “Players”. Find your username in the list, click the three dots next to it, and select “Make Operator”. Once you join the realm, you’ll have full access to all cheat commands. If you want other friends to be able to use cheats too, you can repeat this process for their usernames, but only give operator permissions to people you trust, as they can delete builds or ban players if they want to cause trouble.
For self-hosted private servers, open your server’s root folder and find the server.properties file. Open it with a text editor, find the line that says “enable-command-block=false” and change it to “enable-command-block=true”, then save the file. Next, run the server, join it, and type “/op [your username]” into the server console to give yourself operator permissions. Restart the server, and you’ll be able to use all cheat commands when you log in.
Once you have cheats enabled on your world or server, these are the most useful commands to start with:
- /gamemode creative: Switches you from survival to creative mode instantly, so you can fly and break any block in one hit
- /give @p diamond_sword{Enchantments:[{id:sharpness,lvl:5}]} 1: Spawns a fully enchanted sharpness 5 diamond sword right in your inventory (works for any item, just replace the name and enchantments to match what you need)
- /tp @p [x y z]: Teleports you to any coordinate in your world, perfect for skipping long trips to the Nether or End
- /kill @e[type=creeper]: Removes all creepers from your loaded chunks, so you don’t have to worry about unexpected explosions ruining your build
Common Mistakes to Avoid When Using Minecraft Cheats
Cheats are designed to make the game more fun, but there are a few common missteps that can turn them into a headache if you’re not careful. Most of these are easy to avoid with a little bit of foresight.
First, Double check all command coordinates before hitting enter. Commands like /fill or /setblock can erase entire sections of your base if you type the wrong coordinate values, and there’s no undo button for most cheat commands. I usually write down the coordinates I want to use in a notepad first, then cross reference them with my in-game position before running any large-scale commands.
Second, don’t use cheats on public servers that don’t allow them. Most public survival servers have anti-cheat plugins that will detect command use and ban you immediately, even if you didn’t mean to cause trouble. Stick to using cheats on your own private worlds or servers where the owner has explicitly given you permission to use them.
Third, Never enable cheats on a world you plan to submit to speedrun leaderboards. All official Minecraft speedrunning boards require runs to be done on completely vanilla, cheat-disabled worlds, and any run with cheats enabled will be disqualified immediately. If you’re planning to speedrun, keep a separate set of worlds with cheats turned off entirely to avoid any issues.
Lastly, don’t let other people make you feel bad for using cheats. It’s your game, and you can play it however you want. If you want to spawn a full set of netherite armor after losing everything to a ghast, go for it. If you want to turn on keepInventory so you don’t lose your gear when you die, that’s totally fine too. There’s no “right” way to play Minecraft, as long as you’re having fun.
At the end of the day, knowing how to enable Minecraft cheats is all about making the game work for you, not against you. Whether you want to test a massive build, fix a mistake that cost you hours of progress, or just mess around with friends, the process is simple as long as you follow the steps we’ve laid out. Just remember to back up your saves, double check your commands, and don’t ruin the fun for other players if you’re on a shared server. Next time you’re stuck in a lava pool with no way out, don’t rage quit – just toggle on cheats and keep playing.