While i was playing minecraft (using linux) the power went out and turned the computer off, when i turned it back on i brought minecraft (Feed the beast mod packs) back up and i noticed it all the "news" was restarted, i launched minecraft and my save was gone so i checked the files and i found that instead of the level .dat being a package it was a document.

Does anyone know how to fix the level dat?

  • 1
    What do you mean when you say "package" and "document"? Those words don't have any clear technical meaning, not enough to understand what's wrong with the file. – SevenSidedDie Aug 28 '13 at 3:42
  • The "type" of the normal one says "Gzip archive – My ferret is a sneezicus Aug 28 '13 at 3:48
  • The broken one is just "plain text document" – My ferret is a sneezicus Aug 28 '13 at 3:48
  • That's odd, but not much to go on. The normal file isn't actually a "Gzip archive" in the first place. Ok, so that's not a lead, and we'll have to look elsewhere. Hm. – SevenSidedDie Aug 28 '13 at 3:50
  • Ive tried putting everything in another save, and it made that save disappear – My ferret is a sneezicus Aug 28 '13 at 4:02

"fixing" a corrupt file for the purpose of minecraft is near impossible.

If you wish to try and salvage your save and read what is left:

  1. change the extension of the document back to .dat
  2. follow SevenSidedDie's advice and use NBT Explorer to parse the file

if NBT cannot read anything legible, the file may be beyond repair.

if NBT can read it, you can copy information from it to a new save (such as inventory items / settings)

I know this isn't excactly what you want to hear but I hope it helps, Good luck :)

| improve this answer | |

In the folder for that save there should be a level.dat_old file which is essentially a backup of level.dat. Try removing the _old so that it becomes level.dat and takes over.

If it's just level.dat that was affected then this should fix it.

| improve this answer | |

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.