Back to mods
Worldgen Guard project artwork

CurseForge · Minecraft mod

Worldgen Guard

Prevents server freezes caused by buggy mods that force-load neighboring chunks during world generation.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Worldgen Guard release should I use?

Updated 6 months ago
Latest stable file Worldgen Guard 0.1.1 - 1.20.1
Game version 1.20.1
Loader Forge

Worldgen Guard 0.1.1 - 1.20.1 targets 1.20.1 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Worldgen Guard required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Worldgen Guard 0.1.1 - 1.20.1 need?

Worldgen Guard 0.1.1 - 1.20.1. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Worldgen Guard without breaking your instance.

Built for Worldgen Guard 0.1.1 - 1.20.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Worldgen Guard 0.1.1 - 1.20.1. It targets 1.20.1 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Worldgen Guard 0.1.1 - 1.20.1. It opens that exact file at the source.

About this project

What does Worldgen Guard add?

Worldgen Guard
A defensive mod that prevents server freezes caused by buggy worldgen mods that force-load adjacent chunks during chunk generation.

The Problem
Some Minecraft mods contain Feature implementations that call methods like Block.dropResources(), BlockEntity.setChanged(), or Level.getBlockState() while a chunk is still being generated. These calls can trigger a synchronous force-load of a neighbor chunk that hasn't finished generating yet, parking the server thread on a CompletableFuture.join() indefinitely.

The symptom: the world freezes for players. Blocks stop dropping items, mobs become immobile, and the tick counter climbs from 40s → 80s → infinity. The server doesn't crash, it just stops ticking. Restarts only delay the next freeze when worldgen rolls the same dice again.

What This Mod Does
Worldgen Guard installs four defensive Mixins that intercept the dangerous calls during the chunk decoration phase and cancel them before they can deadlock the server. The cancellations are safe: vanilla worldgen never relies on these calls, and the data they would have produced is either persisted by the regular chunk-save path or recomputed lazily on first interaction.

How It Works
* ChunkGenerator mixin marks each thread as "worldgen-active" while it's running biome decoration.
* Block mixin cancels dropResources() calls during worldgen.
* BlockEntity mixin cancels setChanged() calls during worldgen (when relevant).
An opt-in Level mixin logs suspect cross-chunk reads to help identify additional offending mods.
All four guards can be individually toggled in config/worldgen_guard-common.toml.

When to Install
You run a heavily modded server and have seen unexplained "world frozen, server still up" symptoms.
Your players report that block-breaking or mob behavior randomly stops working after exploration into new chunks.
You're a modpack author and want to harden your pack against the long tail of poorly-written worldgen mods.
If your server is fine, you don't need this. The mod is a targeted fix for a specific deadlock pattern, not a general performance booster.

Project description from CurseForge.

Pick your setup

Worldgen Guard by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Worldgen Guard versions and loaders

2 of 2 releases match

Looking for an older file? The official CurseForge project page is in Resources.