Default singleplayer player data is not written or read to level.dat anymore
The bug
Starting at 18w01a it appears the default singleplayer player data is not saved anymore. It used to be saved as Data > Player entry in the level.dat file. This data was used when a player opened a world they had not opened before.
It appears the Player tag is also not read anymore. This can be seen when opening the attached world Default player test.zip
.
If this is intended at least the entry should be removed from previous worlds to reduce the file size and not possibly cause a conflict in future versions.
Created Issue:
Default singleplayer player data is not written to level.dat anymore
The bug
Starting at 18w01a it appears the default singleplayer player data is not saved anymore. It used to be saved as Data > Player entry in the level.dat file. This data was used when a player opened a world they had not opened before.
If this is intended at least the entry should be removed from previous worlds to reduce the file size and not possibly cause a conflict in future versions.
relates to
The bug
Starting at 18w01a it appears the default singleplayer player data is not saved anymore. It used to be saved as Data > Player entry in the level.dat file. This data was used when a player opened a world they had not opened before.
It appears the Player tag is also not read anymore. This can be seen when opening the attached world Default player test.zip
.
If this is intended at least the entry should be removed from previous worlds to reduce the file size and not possibly cause a conflict in future versions.
Default singleplayer player data is not written or read to level.dat anymore
blocks
relates to
is duplicated by
It looks like the default singleplayer data in the level.dat file was not updated between some versions, probably due to MC-124027 and now you are experiencing MC-697.
It is in general a bad idea to play non-test worlds in the snapshots since snapshots might corrupt your worlds. At least make backups.
It looks like you can solve this issue by using an NBT editor like NBTExplorer, then:
- Open the level.dat file
- Delete the Player tag
- Save the file
I tested it and was able to get the player data you expect in 1.13-pre5. However, since these are snapshots it looks like you will lose the bark recipes (which should not be a big problem).
Looks like this was fixed in 1.13-pre5 or rather some previous version