HomeJavaModsChunk Cap Guard
Chunk Cap Guard
ModsJava

Chunk Cap Guard

by Lanzr64 · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.1 · NeoForge⬇ Download for 1.20.1–1.20.6 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Chunk Cap Guard

A Minecraft entity cleanup and performance management mod.

Chunk Cap Guard periodically monitors the number of tracked entities in loaded chunks across all biomes. When the number of specified entities in a chunk exceeds the configured limit, the mod removes all matching entities from that chunk to prevent localized entity buildup, reduce server lag, and lower the performance impact caused by abnormal mob concentration.

Features

How It Works

Chunk Cap Guard performs checks at a fixed interval and processes all loaded chunks in the current world:

  1. Iterate through all entities
  2. Count target entities by block area
  3. If the number of target entities in a block area exceeds the upper limit, clear all matching target entities within that block area

Note: When a chunk exceeds the configured limit, Chunk Cap Guard removes all configured target entities in that chunk, rather than only the excess amount.

Example Scenario

Assume the configuration monitors the following entities:

A chunk contains:

The total number of tracked target entities in that chunk is 55.

If the configured per-chunk entity limit is 50, Chunk Cap Guard will remove all Zombies and Skeletons from that chunk.

Command

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more