Short answer: the list of datapacks a world uses is stored in its level.dat, in { }DataPacks, as two lists: [ ]Enabled and [ ]Disabled. Move the faulty pack from Enabled to Disabled and the world opens without it. In the editor, open level.dat, go to the Visual tab and switch the pack off under Fix this world.
Signs a datapack is the problem
- The world worked until you added or updated a pack, or updated Minecraft.
- The game shows “Errors in currently selected datapacks prevented the world from loading”, or the loading screen never ends.
- The log (
logs/latest.log) mentions a file insidedatapacks/, often a function, a recipe or a worldgen file.
First try: Safe Mode
When datapacks fail to load, recent Java versions offer to open the world in Safe Mode, with only the vanilla pack. If that screen appears, it is the fastest way in. The packs stay installed, so remove or update the broken one before loading normally again.
Turn the pack off in level.dat
- Close Minecraft or stop the server, and copy the world folder somewhere safe.
- Open the world's
level.datin the editor. With Open folder in Chrome or Edge you can save straight back to the world, with a copy kept in the history. - In the Visual tab, under Fix this world, the Datapacks list shows every pack and whether it is on. Packs from the world's
datapacksfolder start withfile/. - Switch off the pack you added last, save, and open the world. If it still fails, turn off the next one.
In the Tree view, the same change means moving the pack's name from Data/DataPacks/Enabled to Data/DataPacks/Disabled. The vanilla pack must stay enabled.
- { }Data
- { }DataPacks
- [ ]Enabled
- Str0vanilla
- [ ]Disabled
- Str0file/broken_pack.zip
- [ ]Enabled
- { }DataPacks
Why not just delete the pack?
Deleting the file from datapacks/ also works, and is the right move if you don't need the pack any more. Turning it off keeps it in place so you can update it and switch it back on later, and it is the only option when the pack is built into a mod. Keep in mind that blocks, items or structures added by the pack can't come back if you remove it for good.
Experimental features
Packs such as bundle or trade_rebalance are the experimental toggles chosen when the world was created. They are listed the same way. Turning one off in an existing world can remove the items it added, so do it only to get the world loading.