How to Fix & Recover a Corrupt Minecraft World
Recover a corrupted Minecraft world, repair level.dat, fix region files, restore player data and prevent future world corruption on servers.
Signs of World Corruption
World corruption in Minecraft ranges from minor (a few chunks reset to default terrain) to catastrophic (server cannot load the world at all). Common symptoms include:
- The server crashes on startup with errors referencing
level.dator region files. - Chunks appear regenerated, player builds are replaced with natural terrain.
- Players lose inventory or spawn at the world default spawn instead of their bed.
- NBT errors in the log:
Failed to read NBT,Unexpected end of NBT data.
A successful minecraft world corruption fix depends on having backups and understanding which files are affected.
Understanding World File Structure
A Minecraft world consists of:
level.dat, World metadata: seed, spawn position, game rules, world type.level.dat_old, Automatic backup of the previouslevel.dat.region/*.mca, Chunk data stored in Anvil region files.playerdata/*.dat, Per-player inventory, position, health, etc.data/, Map data, raid info, structure data.
Fix 1: Repair level.dat
If the server fails to start with a level.dat error:
- Stop the server.
- Rename
level.dattolevel.dat.broken. - Rename
level.dat_oldtolevel.dat. - Start the server. The
_oldfile is the previous save and is usually intact.
If both files are corrupted, restore level.dat from a backup. As a last resort, create a new world with the same seed and copy the level.dat from it, you will lose game rule customisations but keep the terrain seed.
Fix 2: Repair Region Files
For chunk-level corruption, see our chunk loading errors guide. The short version: use MCA Selector to identify and delete corrupted chunks, then let the server regenerate them.
Fix 3: Recover Player Data
If players lose inventory or position data:
- Check
world/playerdata/for the player's UUID file (UUID.dat). - If it is 0 bytes, it is corrupted. Rename it and check for
UUID.dat_old. - If no backup exists, the player will spawn fresh. Use a plugin like EssentialsX to restore items if you have logs of what they had.
Fix 4: Restore from Backup
This is always the most reliable minecraft world corruption fix. If you have automated backups:
- Stop the server.
- Move the corrupted world folder to a safe location (do not delete it yet).
- Extract the backup into the server directory.
- Start the server and verify.
If the corruption happened gradually (e.g. chunks corrupted over days), you may need to mix files: use the backup's region files for the affected area while keeping the live world's player data.
Preventing World Corruption
- Always stop the server with
/stop, neverkill -9or hard power off. - Schedule automated backups every 1-6 hours. Keep at least 3 days of rolling backups.
- Monitor disk space, a full disk during chunk saves causes truncated region files.
- Use Paper's
sync-chunk-writes: true(default) to ensure chunk data is flushed to disk. - Avoid running world-editing operations (WorldEdit, Chunky) during peak player hours.
- If hosting on a VPS, choose a provider with reliable SSD storage and avoid NFS-mounted game directories.
Want to just play without the headaches? Join Astroworld MC, IP play.astroworldmc.com, Java + Bedrock.