Tutorials/Recover corrupted saved world data
At times Minecraft will hiccup and drop a saved world from the list of those available. The file is still there with the other saved worlds; it is just been corrupted. The missing world, and all your effort there, is recoverable. The things you were wearing and carrying at the time the world got corrupted are not.
First, try creating a "new" world with the exact same name. If successful you will spawn back in the last place you were with your inventory intact.
- Access your "saves" folder
- You should see a folder for each of your saved worlds. For this example, let's say your corrupted world is called LostWorld.
- Make a copy of the LostWorld folder and all files and folders inside it.
- This copy can have any name you want. For this example we call it LostWorldCopy.
- Start Minecraft and "Re-Create" LostWorld as a new world then save and close Minecraft.
- For this example we call this world BlankWorld. Its important that you recreate LostWorld instead of creating an entirely new world to avoid chunk error. Make sure the map generator settings and seed for both worlds match.
- The inventory (i.e. the things you were carrying) from BlankWorld world will be used. Since an inventory in a new world is empty, it will also be empty in the restored world. You can fake a restored inventory by making BlankWorld a Creative world and putting everything you need into your inventory before closing the game. Don't forget your armor and any enchants on your armor and tools.
- Go back to the .minecraft\saves folder
- There will be a new folder BlankWorld for the world you just created.
- Copy the following files from the BlankWorld folder to the LostWorldCopy folder:
- level.dat_mcr (not always present)
- Take care not to copy any folders.
- Copying can be done with the normal methods for your system: Copy (or Cut) and Paste, select and drag, or other methods.
- Restart Minecraft
- You should see a world called BlankWorld, with LostWorldCopy as the name of the folder in which it is saved. This is now your restored world.
- There will also be a BlankWorld with BlankWorld as the folder. Ignore this one.
- Test to make sure this world loads correctly.
- You will start in a random location and have to find your way back to your settlement.
- You might start underground and suffocate. If this happens you will lose all your items again (the ones you put into your inventory in Creative mode in BlankWorld). If you want to keep your stuff, start the whole procedure from the top. After filling your inventory in BlankWorld, make sure to put a stack of Enderpearls in the first slot. When you suffocate, try to escape by looking up and using the Enderpearls. You can also try to put yourself at a higher altitude in BlankWorld. You may then die from fall damage, but your items will still be there after you respawn. Or, use the keep inventory cheat to make it easier. Although, you can turn this gamerule cheat off afterwards. If you find it too 'unnatural' for your Mincrafting standards.
- In the Minecraft world select screen, rename BlankWorld to LostWorld.
- This will now be your restored world.
- To clean up, delete the BlankWorld world (the one that is saved in the BlankWorld folder).
The restoration will not be perfect. In particular:
- Any saved information about mods (e.g. Thaumcraft research) will be lost.
- Unless you used the 'fake restore' trick mentioned above, your inventory will be empty. You can also restore it with an NBT editor by copying the content of the root node from the file players/yourname.dat to the node "Player" in the file level.dat. (Directions needed)
- Ender chest contents may be lost.