Mineuniverse
Log in Register
Mods

Chunk Corruption Preventor

Attempts to prevent chunk corruptions by serialising the chunk again, and eliminating specific culprits rather than wiping the whole chunk
by ethanicussss
Download Claim this project
58 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Bug Fixes

Chunk Corruption Preventor is a bugfix mod that detects when a chunk corruption is about to happen, and code-injects with a "Safe Serialize" method, so that only the failing element of the chunk will be wiped rather than the entire chunk.

The logic goes like this:

  • If a chunk's nbt is messed up after Mojang's code has serialized it,
  • Then serialize it again
  • If serialization fails again during the blockEntity section (for example)
  • Then do not save the specific blockEntity that caused the fail
  • And output loads of logging data to the console and chat

The intention is to help server admins and reduce the annoyance of chunk corruptions for players.

The player will receive chat output so they know what happened, they can ping an admin with the details, and they still have the rest of their chunk to play with while they wait for the admin to get online

If only one block is causing the issue, then there is no need to wipe the whole chunk!

 

This mod does not cause additional issues, but of course it may not work every time. If the chunk is already going to be wiped, then the game may as well try again. The whole "Safe Serialize" code is wrapped in a bunch of try/catch statements, which is ok because it doesn't run very often, and it also means there is good logging and it won't effect the map thread.

There is also no chance of an infinite loop here. Once "Safe Serialize" has run once for a saving chunk, it will not run again during the same cycle.

chunkcorruptionpreventor-1.0.0.jar
MC Fabric, 1.18.2, Server
Release 2025-12-13 Get

More from ethanicussss

Astral Additions (for Create: Astral)
744,557
Adopt a Floppa
720,897
Passive Piglins
686,075
Choc Music
472,615
XPCrystals
217,906
Estrogen Patches
178,300

You Might Also Like

RLMixins
Minecraft and Minecraft mod tweaker and fixer for the modpack RLCraft
9,896,264
Steel Got It
Fixes a bug that causes creepers to consume your flint and steel. MC-264285
996,093
Wither Spawn Fix W.S.A. Compatible
A fix for the Wither spawn that works with Wither Spawn Animation
995,407
Misanthropy's World Corruption Fixer
Restores your corrupted world caused by missing mods and more
98,977
Worldgen Patches
Fixes a few small issues in worldgen.
97,080
Celestisynth Fix
Fixes a memory leak issue caused by static mappings.
9,969