Turn on cheats or creative mode in an existing Minecraft world (Windows)

Short answer: yes. In a Java Edition world, cheats are one value in the world's level.dat file: allowCommands (1 = cheats on). Change it once and the world keeps it. Then switch to creative in the game with /gamemode creative. NBT Editor by Northgable changes the file on Windows, and copies the old file to a backup folder before every save.

On the newest Java versions, look in the pause menu first: it has a World Options screen with some of the world's settings. Editing level.dat is for what the menus don't give you: a world you keep on 1.21 (a modpack, a copy of a server world), the player's own items, and the world's game rules on that version.

Without any app

- Java Edition 1.21, for one session: open the world, press Esc, choose Open to LAN, set Allow Cheats to ON, and start the LAN world. Cheats work until you leave the world; the next time you open it they are off again. - The newest Java versions: press Esc and open World Options. What it offers depends on your version. - Bedrock Edition: the game has its own switch (world settings, Cheats). The game warns that achievements are turned off for that world once cheats are on.

For good, in a Java Edition world (1.21 and newer): edit level.dat

1. Close the world in Minecraft. NBT Editor never writes to a world that is open in the game.

2. Open NBT Editor. It lists the Java Edition worlds in your .minecraft saves folder, and your Bedrock Edition worlds.

3. Pick the world, then level.dat, then Data.

4. Set allowCommands to 1 for cheats.

5. Press Save. The app first copies the old level.dat to Documents\NBT Editor backups.

6. Open the world in Minecraft: commands work. For creative, type /gamemode creative.

GameType, in the same file, is the world's default game mode for new players. To switch your own player, the /gamemode command is the sure way. In a 1.21 world the same file also holds the world's game rules (for example keep inventory) and the player's items, if you want to change those too.

What it costs

Free: open, browse and edit everything, and save one change. NBT Editor Pro, one payment: save as many changes as you like. The Microsoft Store shows the price in your own currency. Your files stay on your PC.

Which versions

Java Edition 1.21 and newer. For Bedrock Edition: level.dat game rules and the world's player, entity and world records.

Get NBT Editor from the Microsoft Store: https://apps.microsoft.com/detail/9N0DFPSKMMFH?cid=mk-page-nbt A short video of these steps: https://youtu.be/_bTqwg1yVq4

NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT. Made by Northgable. Disclosure: this page is about our own app.

About this site

Run by Northgable, the maker of the app on this page. E-mail: kestrelworksdev+northgable@gmail.com. Privacy: this site has no ads, no analytics, no cookies of its own and no forms, and no account or sign-in. Cloudflare, which hosts it, handles each request under its own privacy policy: https://www.cloudflare.com/privacypolicy/ The links to our apps in the Microsoft Store and on Google Play carry a campaign tag, so the store can show us how many people came from this site. We see only the totals the stores show to app makers, never who you are. If you e-mail us, we use your message only to answer you. Ask us to delete it and we will. If this changes, this section changes first.