29

This question is regarding the minecraft Beta 1.8 prerelease -- I have a beautiful house in single player survival which I'd like to record while flying.

I want to be able to change the game mode of my survival map to creative to be able to fly through it without installing a mod. I know it is possible if you run the map on a multiplayer server via the command /gamemode <user> 0|1 but I want to achieve this in single player :)

I think this would be possible through editing your level.dat file as I think that's where the game mode for the map is stored.

4
  • 6
    I was wondering this for the other way round. For adventure maps and such!
    – Ronan
    Commented Sep 13, 2011 at 17:03
  • 1.13 syntax: /gamemode <user> survival|creative(|adventure|spectator)
    – pppery
    Commented Jul 12, 2019 at 14:14
  • I'm pretty sure it's /gamemode (survival|creative|adventure|spectator) <target>. Commented Nov 30, 2021 at 14:47

5 Answers 5

36

As of Minecraft 1.3, singleplayer and multiplayer have been merged, so you can switch your gamemode with the /gamemode command:

  • /gamemode survival
  • /gamemode creative
  • /gamemode adventure

You can abbreviate the modes. For example, typing /gamemode c for Creative works as well.

You can only do this if you haven't disabled cheats during world generation, though.

If you turned cheats off and still want to do it for whatever reason: The game mode is stored in the level.dat file, which can be edited using an NBT editor, such as NBTExplorer. The game mode is stored in Data/GameType.

9
  • Thank you! I did not want to install any flying mod, since that seems overkill with creative mode having it's own. Since I don't need to change the game mode too often, using NBTedit will not be much of a hassle.
    – joar
    Commented Sep 13, 2011 at 16:54
  • doesn't work, when i load the world it's back as before ò__ò
    – user12455
    Commented Sep 14, 2011 at 17:51
  • 1
    checked and confirmed it worked :]
    – user12456
    Commented Sep 14, 2011 at 18:11
  • 1
    You can also use /gamemode survival, /gamemode creative, and /gamemode adventure, so you don't need to memorize which number refers to which game-mode.
    – IQAndreas
    Commented Dec 9, 2013 at 13:06
  • 1
    @IQAndreas I think this wasn't possible back when I edited this, but yeah. Thanks for bringing it up.
    – a cat
    Commented Dec 9, 2013 at 13:14
6

I've found another tool (NBTEdit was unavailable when I tried to download it, so I poked around for alternatives).

The Game Mode Switcher Is exactly what it says on the tin.

It's a simple, external application with the added option of culling your inventory when you switch modes.

enter image description here

2
4

You can use /gamemode 0|1 now by starting your world with "Cheats Enabled".

1
  • 1
    1.13 syntax: /gamemode <survival|creative>
    – pppery
    Commented Jul 12, 2019 at 14:15
2

You can do this in-game and on-the-fly using the TooManyItems mod. Once installed, open your inventory press the C button in the toolbar to toggle between survival and creative mode:

Image of TooManyItems

(Screenshot from thread)

1
  • Is this a permanent switch or just for this session? At least with NotEnoughItems (similar to TMI but with a lot of nice features added) this is setting only stays until logging off.
    – Zommuter
    Commented Mar 2, 2012 at 7:01
2

Without Mods or software? Try Dumping your inventory in a chest, Create a new world that is creative mode, copy the level.dat in your new world to your old one (yes overwrite the old level.dat) then delete your new world as it was only temporary and you have no uses for it, then play your world, sorry if it bugs people that this is all 1 sentence!
Also note this will change your seed so input your old seed for the same generation or use a new one for some excitement!

1
  • 3
    nice idea, you should mention that the seed can be obtained by pressing F3
    – Zommuter
    Commented Mar 2, 2012 at 7:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.