What a Java world is made of
Everything below opens in the editor above. Region files themselves (.mca) are a container of many compressed chunks rather than a single NBT document, so extract a chunk payload first — the editor reads the zlib-compressed chunk NBT that comes out.
| Path | Contents | Compression |
world/level.dat | World name, game mode, rules, spawn, DataVersion | gzip |
world/level.dat_old | Previous save of the same file | gzip |
world/playerdata/<uuid>.dat | Inventory, ender chest, position, health, XP, attributes | gzip |
world/data/raids.dat, idcounts.dat, map_*.dat | Raid state, entity id counters, map items | gzip |
world/data/scoreboard.dat | Objectives, teams, scores | gzip |
world/region/*.mca | Chunk NBT inside a region container | zlib per chunk |
servers.dat | Multiplayer server list from the client | none |
hotbar.nbt | Saved creative hotbars | none |
*.nbt in datapacks | Structures placed by structure blocks and jigsaws | gzip |
Paper, Spigot, Fabric, Forge — same files
Forks and mod loaders change how the server runs, not how the world is written. Paper, Purpur, Pufferfish, Folia, Fabric, Quilt, Forge, NeoForge, Mohist, Arclight and Sponge all use Vanilla's NBT layout, so anything on this page applies to them unchanged. What forks do add is extra files beside the world — paper-world.yml, mod configs — which are YAML or TOML and unrelated to NBT.
Mods and plugins may add their own compounds inside level.dat or playerdata. Those tags open here like any other; leave them alone unless you know what the mod does with them.
DataVersion and version migration
Java worlds carry a DataVersion integer that identifies the world format, incremented on every snapshot. Some useful anchors: 1.16.5 is 2586, 1.17.1 is 2730, 1.18.2 is 2975, 1.19.4 is 3337, 1.20.4 is 3700, 1.21 is 3953. Opening a world in an older client than the one that wrote it is refused precisely because of this tag, and lowering it by hand does not downgrade the chunk data behind it — it just removes the guard rail. Read it to find out what wrote a world; do not edit it to force a downgrade.