Skip to content

Level Format

Byte Order

level.dat is stored in Big Endian byte order unless mentioned otherwise.

Parsing level.dat

Header

NameSize (in bytes)Description
Version4The version used to save the file. Always 1. Stored in Little Endian
Size4The size of the file subtracting the header. Stored in Little Endian

Global World Data

NameSize (in bytes)Description
Seed4The seed of the world
Spawn X4The X coordinate of the world spawn point
Spawn Y4The Y coordinate of the world spawn point
Spawn Z4The Z coordinate of the world spawn point
Estimated World Size8The world size represented in bits
Last Played4Unix timestamp indicating when the level was last saved.[1]
World Name Length2The length of the world name.
World NameVariableA CP437 encoded string.

Notes

  1. Will overflow and become negative at 03:14:08 UTC on 19 January 2038 due to the year 2038 problem and will overflow every ~136 years after that.

Contributors

The avatar of contributor named as BJTMastermind BJTMastermind

Changelog

Contributors



Documentation page was setup by DexrnZacAttack.