how do I turn cheats on when creating a single player minecraft world

Making a new world on java for my nephew and want to be able to use /time and /gamemode. Where's the option on the create world screen?
2

Leave A Reply

Log in to post an answer.

2 Answers

mia_arcade Nov 16, 2026
arunplayz
the LAN trick has to be redone every session, yeah. if you want it on for good, close the world, back up the save, and open level.dat with an NBT editor. set allowCommands to 1 and save. after that the world has cheats on every time you load it.
jasmin_43 Oct 20, 2026
arunplayz
On the create world screen there's an Allow Cheats toggle, on newer Java versions it's under the Game tab. Forgot to turn it on? Pause, Open to LAN, set Allow Cheats on and start. That only lasts until you close the world though, so you'd redo it each time.