# Fix a Minecraft world that won't load after a crash

> Markdown version of https://stella.sh/how/game-mods/fix-corrupted-minecraft-world for agents and LLMs.
> World won't load after a crash or power cut? Usually level.dat was wiped mid-save; swap in level.dat_old by hand, or let Stella (stella.sh) back it up and repair it.

When a laptop dies while Minecraft is saving, the world's `level.dat` (its main settings file) is often left empty, and the world won't open. The game keeps the previous version as `level.dat_old` in the same folder. Quit Minecraft, back up the world folder, rename the broken `level.dat`, and copy `level.dat_old` to `level.dat`. Your builds live in separate region files and are usually fine. Stella (stella.sh) backs up the world, finds what broke and does this swap for you.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: Repaired in under 4 minutes. Checked afterwards against an answer key written before the run: level.dat loads again, it is Riverbend's with the original seed, region, player and data files untouched, the other world untouched, the broken level.dat kept as a copy and level.dat_old still there. File-level check only: no Minecraft account was used and the game was never launched. The world is a stand-in made for this run, broken the way a power cut mid-save breaks one. The work is sped up 16×.

Video (48 s): https://stella.sh/media/proofs/game-mods/fix-corrupted-minecraft-world/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. The world Riverbend won't load after the laptop died mid-game.
- 0:01 The prompt: fix it without losing my builds.
- 0:15 Stella replies that it will copy the whole world first, then find what broke.
- 0:21 Backing up, diagnosing and repairing, sped up 16×.
- 0:33 Done: the wiped settings file replaced with Minecraft's own backup, builds untouched, about five minutes of play lost.

What Stella does:

1. Copies the whole Riverbend world to a backup folder before changing anything, named so it doesn't appear as an extra world in the game
2. Looks at the world's files and the game log, and finds the settings file was wiped (all zeros) while the region files with your builds look full-sized and intact
3. Swaps in the backup copy Minecraft keeps from the previous save, and keeps the broken file and `level.dat_old` too
4. Checks the restored file reads correctly: the same world name and seed, not a new world
5. Says what you may lose (about the last five minutes of play) and that it couldn't open the game to test

## The prompt to paste

```text
My Minecraft world Riverbend won't load since my laptop died while I was playing. Can you fix it without losing my builds?
```

## Repair it yourself

1. **Quit Minecraft and back up the world.** Close the game. Open your saves folder (Windows `%appdata%\.minecraft\saves`, Mac `~/Library/Application Support/minecraft/saves`, Linux `~/.minecraft/saves`) and copy the whole world folder somewhere else first.
2. **Show file extensions.** On Windows, in File Explorer choose View, Show, File name extensions, so you can tell `level.dat` from `level.dat_old`. On a Mac, Finder, Settings, Advanced, Show all filename extensions.
3. **Look at level.dat.** Open the world folder. A `level.dat` of 0 KB, or much smaller than `level.dat_old`, is the broken one. The `logs/latest.log` file in `.minecraft` may also say “Not in GZIP format” for that world.
4. **Swap in level.dat_old.** Rename `level.dat` to `level.dat.broken`. Copy `level.dat_old`, and rename the copy to `level.dat`. Keep the original `level.dat_old` where it is.
5. **Open the world.** Start Minecraft and load the world. You'll be where you were at the previous save, a few minutes earlier. If chunks are missing or the game still crashes, the region files are damaged too: a region tool such as the free MCA Selector can remove the broken chunks so they regenerate.

## Where Stella stops

- Checked at file level only: no Minecraft account was used and the game wasn't launched to load the world.
- You lose whatever happened between the last two saves, usually a few minutes.
- If the region files themselves are damaged, some chunks can still be missing. That needs a region tool; Stella checks they look intact but can't vouch for every block.
- Recorded on Linux. The saves folder is elsewhere on Windows and Mac (above); the fix is the same.
- Only file names, sizes and the game log go to the AI model you use in Stella.

## Questions

**What is level.dat_old?**
Minecraft's copy of the world's settings file from the previous save. When the current `level.dat` is wiped or cut short, the old one restores the world with only a few minutes lost.

**Will I lose my builds?**
Usually not. Builds are stored in the region files, separate from `level.dat`. You lose your position, inventory and anything built since the last autosave.

**There's no level.dat_old. What now?**
Use a backup if you have one. Without one, an NBT editor can make a new `level.dat` with the same seed, but player data and some settings are lost. Then [set up regular backups](https://stella.sh/how/game-mods/back-up-minecraft-worlds).

**Can I stop this happening again?**
Quit the world before closing the laptop, keep it plugged in for long sessions, and keep zipped backups of worlds you care about.

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Minecraft Wiki: level.dat](https://minecraft.wiki/w/Level.dat), [Minecraft Wiki: Java Edition level format](https://minecraft.wiki/w/Java_Edition_level_format).

## Related problems

- [Back up all your Minecraft worlds and move them to a new computer](https://stella.sh/how/game-mods/back-up-minecraft-worlds.md)
- [Minecraft modpack crashing with exit code 1? Find the real error](https://stella.sh/how/game-mods/minecraft-modpack-exit-code-1.md)
- [Turn on cheats in a Minecraft world you already made, permanently](https://stella.sh/how/game-mods/turn-on-cheats-in-minecraft-world.md)
- [Install Sodium and Iris on Minecraft 1.21 (Fabric)](https://stella.sh/how/game-mods/install-sodium-iris-minecraft-1-21-fabric.md)
- [How to install a Minecraft resource pack that isn't showing up](https://stella.sh/how/game-mods/install-minecraft-resource-pack.md)
- [How to allocate more RAM to Minecraft and stop out of memory crashes](https://stella.sh/how/game-mods/allocate-more-ram-to-minecraft.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
