mojira.dev
MC-193198

Level.dat, Level.dat_old and player files in the playerdata folder can become corrupt in certain situations

Moderator Note

Please attach the console log of your game using these instructions after having done the following:

  1. Open a world

  2. Make some changes to it, ones that will likely lead to corruption

  3. Leave the world

  4. If the world has disappeared from your saves list, please copy the log and provide it here - if not, please start again with Step 1.

Workaround

To make the world appear again in the saves list, you can rename the newest of the "level##########.dat" file to "level.dat" in the folder of the save affected by this.

[media]

When an update is given to a tile entity ( adding items into a chest, placing a chest... etc). directly before saving and exiting a world, the level.dat file is deleted or lost (don't know). this now only loses any inventory and disappearing from the in-game world list. the way i temp fix it is to use a backup of the world and simply copy the level.dat and level.dat_old onto the non-backup world  

Linked issues

MC-193443 Dissapearing worlds Resolved MC-193646 World getting removed Resolved MC-194272 Multiple Corruptions Resolved MC-194357 Saving of worlds Resolved MC-194470 My world has disappear by it self. please find the answer Resolved

Attachments

Comments 17

Please provide a screenshot of your game while you are in the world with your F3 debug screen enabled.

I

[media]

can't get into a world with the files deleted(or don't know how). this is a world where it has happened repeatedly

 

here is a video of the file deletion. I cut out the middle of failed attempts on the same world.

[media][media]

Do you have any third party programs that are related to Minecraft save files installed on your device, and if so, does it still happen without them installed? Please also remove any bad antivirus programs like Norton or McAfee, and run a scan with Malwarebytes.

Could you also please update a couple of the "level#####################.dat" files?

And how do i fix it? 

7 more comments

To replicate, you simply need to open either level.dat or level.dat_old with NBTExplorer (unsure if similar programs effect it the same), and then open the world. This causes the level##################.dat to generate, meaning it occurs on world load, not on world save. Also this is on a Windows environment

Um, wait, so you keep that NBTExplorer open for whole time? If yes, then it's not valid way of replication, since external program (that user opened themselves) is preventing Minecraft from writing to that file.

Yes, and that was my thought as well. Somebody else has been able to replicate it without using an external program, but they are unsure how

I was able to create a level##########.dat, however it was not kept in the folder. I did capture the exact moment it occured though - https://www.youtube.com/watch?v=gFXMC6DG56o

Can confirm in 1.19.3 and 23w04a

Glassdragon

(Unassigned)

Community Consensus

Platform

Very Important

Save Data

mojang_internal_1

1.16.1, 1.19.3, 23w04a, 1.19.4

1.20.3

Retrieved