mojira.dev
REALMS-11621

Player Coordinates, Levels, Inventory and Ender Chest lost in world backup

After downloading a Realms backup and loading it as a single player world using the same account (Operator) on the same computer (Windows 11), the player's coordinates, inventory and ender chest contents are lost.

This results in:

  • The player being placed at 0, 0 (and in my case, suffocating in block)

  • Any levels being lost

  • All items from inventory missing

  • Ender chest contents missing

Stats and achievements however appear to remain correct.

 

Expected Behavior

Player data should remain in-tact when loading the backup as a Single Player world.

 

Steps to reproduce:

  1. Create a world on Realms

  2. Put items in inventory and ender chest

  3. Gain levels

  4. Disconnect and wait for backup to occur

  5. Download backup

  6. Load backup as a single player world
    At this point you should see the same issues described above

Notes

  • My world has been around for a year or two and has been updated a few times.

  • I have not tried messing around with data files in the playerdata folder but I do see a data file present for my UUID

  • I have not yet migrated my Realms.  Was trying to do a backup before doing so and discovered this issue.

Edit

On further review of the player data files using a 3rd-party NBT viewer, I've discovered that my player data file (based on UUID) is indeed with a clear inventory.  However, in the backup download, there was a "dat_old" version of the file that DID contain my inventory details.

I tried renaming the dat_old to dat, but after loading the world in Single Player, it wiped out the data again.

It appears that when a backup is made, the current playerdata files are renamed to dat_old and new ones are created, effectively wiping any existing data.

I've attached both files (with the UUID replaced with "playerdata") here for review.

Linked issues

Attachments

Comments 4

There is also a level.dat and level.dat_old after the backup and I can see the primary difference is the lack of a "player" node in the new dat file. It appears that what might be happening is that Singleplayer expects inventory to be in the level.dat rather than in the player data folders based on UUID.  I don't remember it being this way with backups in the past, but that would explain what's going on here.

Maybe the fix is to somehow move the NBT player data from the UUID file to level.dat?  Or run the backup on an online server instead.  Hopefully someone can help confirm.  In any case, these seems like it's a big issue for any non-technical people.

After some testing, I can confirm that if you set up a Minecraft server, copy the Realms backup into the server folder, rename it to "world" start and then and connect to the server, all player data and positions are maintained as expected.

This is unfortunate.  I would expect the Realms account holder to be able to make a backup, login locally to that backup and see their player data retained.  Instead, it appears you now have to set up a server instead.

I think the fix here is to have the Realms system set the "local" player data in the backup to either the same as the person making the backup (if possible) or the Realms owner at the very least.

I'm also having the same issue.

Hi,
Resolving temporarily as Awaiting Response. Does this issue still occur in the latest version (1.21.1)? If so, could you export your world and add it to your report? If it exceeds the file size limit, you can upload it elsewhere (e.g., OneDrive) and link it here. This ticket will reopen automatically when you reply.

Quick Links:
📓 Bug Tracker Guidelines – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

migrated

(Unassigned)

Community Consensus

Java

Retrieved