8

Is there a way to delete my character progress in single player, while keeping the map and all my changes to it the same? I have seen this, but it does not work. I am running 1.8.1. Is there something I'm doing wrong?

Also, I don't see a kittycat3141.dat file, I see a file with a random filename.

  • Hmm... Checking now. Can you screenshot that folder? (No .dat file) – user92092 Dec 24 '14 at 4:54
  • OK. See that folder saying playerdata? Back it up first, but delete it. – user92092 Dec 24 '14 at 4:55
  • Might want to do the same with the stats folder as well. (Holds player stats by the looks of it) – user92092 Dec 24 '14 at 4:56
  • 1
    according to this page the .data file in the playerdata folder is just for servers (which a singleplayer world can easily be promoted to) however level.dat (found in the world's root directory) stores the state of the singleplayer player, maybe back up your world and delete this file along with the playerdata folder and see if that works – Memor-X Dec 24 '14 at 5:03
  • 1
    @ModDL Same world, fresh player. – Ben Dec 24 '14 at 5:16
14

After lots of testing, I've figured this out.

Deleting playerdata will not work because level.dat contains your singleplayer player info and supersedes whatever is in playerdata. However, level.dat does not just contain player data, so deleting it will mess up the world. Here's the solution:

  1. You need an NBT editor. I used NBTExplorer.
  2. Close Minecraft while you edit the world
  3. Delete the Player node from level.dat
  4. Delete your file in playerdata
  5. (optional, if you want your stats removed as well) Delete your file in stats
  6. Reopen Minecraft and play in a restarted world
  • 1
    Getting technical is always the answer. Plus the NBT format is one of the best file formats ever invented, I take my hat off to Notch for inventing it. – Pharap Dec 24 '14 at 18:17
  • @Pharap well, it's just JSON... – Quentin Dec 25 '14 at 3:31
  • 1
    @Quentin It's not quite JSON, it's a binary format rather than plaintext, which means it has the simplicity of JSON but makes it easier to parse and it generally takes less memory. – Pharap Dec 25 '14 at 23:58
  • 2
    @Quentin NBT is stored more efficiently than JSON, almost like a compressed version of it. They can store the same data. – FlyingPiMonster Dec 26 '14 at 3:36
  • 1
    @Quentin You can read Notch's original (unofficial) specification for the NBT format here: web.archive.org/web/20110723210920/http://www.minecraft.net/… It's an interesting read for any game geek, particularly one who enjoys programming or minecraft. – Pharap Dec 26 '14 at 4:06
3

Jump into a large pool of lava. Your inventory and experience will go with you. A few attempts with the contents of various chests should complete this process fairly quickly (far quicker than posting on the internet and trying out various hacks).

2

Generate the world with the same seed as the first world. Assuming the world was generated with a recent version, this should work.

  • 3
    Unfortunately this is not what the OP was asking (I said the same thing), the OP was trying to find a way of keeping a world the same (with buildings and such built by the player), and resetting their inventory, experience etc. – Ben Dec 24 '14 at 8:44
  • @Ben I see. This really needs rewording, it totally wasn't clear. – o0'. Dec 24 '14 at 15:58
  • Um. Jump in lava? Unless it's hardcore, I guess. – Keon Dec 25 '14 at 15:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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