Minecraft:Player.dat format: Difference between revisions
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| Line 20: | Line 20: | ||
The image below shows the slot numbers of the player's inventory slots as of [[Minecraft:Java Edition 1.21.5]]. | The image below shows the slot numbers of the player's inventory slots as of [[Minecraft:Java Edition 1.21.5]]. | ||
In versions prior to [[Minecraft:Java Edition 25w03a|25w03a]] (including [[Minecraft:Java Edition 1.21.4|1.21.4]]), the head, chest, legs, feet, and offhand slots were stored in the Inventory tag. In 1.21.4 and most prior versions these slots are numbered 103 | In versions prior to [[Minecraft:Java Edition 25w03a|25w03a]] (including [[Minecraft:Java Edition 1.21.4|1.21.4]]), the head, chest, legs, feet, and offhand slots were stored in the Inventory tag. In 1.21.4 and most prior versions these slots are numbered {{cd|103|102|101|100|-106|d=and}} respectively. | ||
[[File:Items slot number.png|alt=The player's inventory slot numbers as of 1.21.5.]] | [[File:Items slot number.png|alt=The player's inventory slot numbers as of 1.21.5.]] | ||
Latest revision as of 11:12, 30 August 2026
Template:Lowercase title Template:Redirect Template:Exclusive
<player>.dat files are used by Minecraft:servers to store the state of individual Minecraft:players. The format is also used within level.dat files to store the state of the Minecraft:singleplayer player, which overrides any <player>.dat files with the same name as the singleplayer player. These files are in Minecraft:NBT format.
NBT structure
Item structure
Items are used both in the player's inventory and ender chest.
Inventory slot numbers
The image below shows the slot numbers of the player's inventory slots as of Minecraft:Java Edition 1.21.5.
In versions prior to 25w03a (including 1.21.4), the head, chest, legs, feet, and offhand slots were stored in the Inventory tag. In 1.21.4 and most prior versions these slots are numbered Template:Cd respectively.
History
Trivia
- Pre-1.7.10 player data files were named as the player's username rather than their UUID, this meant if the server was running on Windows and the player had a reserved filename as a player name they would not have their player data saved. List of Reserved Windows Filenames:
AUXCOM<n>where n is a digit from 1-9 (inclusive)CONLPT<n>where n is a digit from 1-9 (inclusive)NULPRN
Template:Navbox Java Edition technical
Minecraft:de:Spielerdaten Minecraft:fr:Format player.dat Minecraft:ja:Player.datフォーマット Minecraft:nl:Player.dat formaat Minecraft:pt:Formato Player.dat Minecraft:ru:Player.dat Minecraft:zh:玩家数据格式