A world is stored as region files, each holding a block of chunks. Damage one and Minecraft either regenerates that area as fresh terrain or refuses to load it. Neither is silent, and both are recoverable to different degrees.
What you are seeing
Chunk file at [x,z] is missing block entity datain the console.- A square of terrain regenerated as new land, cutting a build in half.
- The server crashes every time a specific player logs in or approaches an area.
Failed to check session lockor errors mentioningregion/r.x.z.mca.
Why it happens
Region files are written continuously while the server runs. A process killed mid-write leaves one half-updated — which is why the Kill button, a crash during a save, and running out of disk space are the three usual causes. Normal shutdowns finish their writes and do not do this.
Recovery, in order of preference
- Restore from a backup taken before the corruption
This is the only option that recovers the data intact. Everything below trades data for a world that loads.
- Delete only the damaged region files
The console names them:
r.-1.4.mcaand similar. Deleting one region regenerates that area as new terrain and leaves the rest of the world untouched. You lose a 512×512 block square, not the world. - Delete the player's data if it is one player crashing
A corrupt
playerdatafile crashes the server when that person joins. Removing their.datcosts them their inventory and position, and costs nobody else anything. - Delete
level.dat_oldand renamelevel.dat_oldbackIf
level.datitself is damaged, Minecraft keeps the previous copy alongside it. This recovers world settings without touching terrain.
Every step above is destructive. Copying the world folder first costs disk space and means a failed repair is not also a lost world — you can always go back and try a different approach.
Corruption is not a maintenance failure you can prevent by being careful; it is what happens when a process is interrupted at the wrong microsecond. A daily backup turns it from a disaster into a fifteen-minute inconvenience, and that is the whole reason the routine exists.
The server starts, players can walk through the affected area, and no region-file errors appear during a full save.