mojira.dev
MC-269096

Most player abilities stored in player data are ignored on reload

Player data, when stored to disk in either the playerdata folder or level.dat, stores various player abilities in the abilities tag. When editing these files with external tools, I would expect these values to apply when loading into the game. However, the majority are ignored and reset to their respective gamemode defaults.

Ability

Loaded from Disk

flying

flySpeed

instabuild

invulnerable

mayBuild

mayfly

walkSpeed

Provided is a world with an edited level.dat such that mayfly is set to 1, and the player's gamemode is survival.

Expected functionality:

The player is able to use creative flight in survival mode.

Actual functionality:

The player is not able to use creative flight in survival mode.

Attachments

Comments 2

Considering that externally editing your level.dat file or player data files is not supported, this might be invalid.

Well that's a disappointment. I remember that external editing used to be at least somewhat "supported" when it comes to bugs (e.g. MC-4433), and not having access to these values causes the loss of quite some custom map and gameplay potential.

In either case, if there's no point in storing the data as it's regenerated on login anyways, then it's wasting disk space (abiet little).

Captain_S0L0

(Unassigned)

Unconfirmed

(Unassigned)

1.20.4, 24w09a

Retrieved