Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

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.

share|improve this question
5  
I was wondering this for the other way round. For adventure maps and such! –  Ronan Forman Sep 13 '11 at 17:03

6 Answers 6

up vote 26 down vote accepted

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.

share|improve this answer
    
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 Sep 13 '11 at 16:54
    
doesn't work, when i load the world it's back as before ò__ò –  user12455 Sep 14 '11 at 17:51
1  
checked and confirmed it worked :] –  user12456 Sep 14 '11 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 Dec 9 '13 at 13:06
1  
@IQAndreas I think this wasn't possible back when I edited this, but yeah. Thanks for bringing it up. –  lunboks Dec 9 '13 at 13:14

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

share|improve this answer

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!

share|improve this answer
2  
nice idea, you should mention that the seed can be obtained by pressing F3 –  Zommuter Mar 2 '12 at 7:02

Visit seedscope.net.

Scroll down to the Toggle Type tool, and upload your world's level.dat file.

Disclaimer: I did NOT make seedscope.net and have no affiliation with it at ALL. Some kind person tried to help by editing this post to say that, but it is not, alas, true.

share|improve this answer
5  
then, er, why is your website listed as seedscope.net in your profile? –  Thomas McDonald Jan 8 '12 at 9:08
    
Because it's a great website, and I want to get the word out. ...and I don't really care to release any PII on the intarwebs, so I don't put my own pages. <shrug> –  Fnord Prefect Jan 14 '12 at 0:28

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)

share|improve this answer
    
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 Mar 2 '12 at 7:01

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

share|improve this answer
2  
Well I can't get NBTedit to work on Ubuntu, so here, have an upvote. –  John the Green Nov 8 '11 at 3:10

protected by badp Apr 13 '13 at 12:34

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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