HomeJavaModsChunkGuard
ChunkGuard
ModsJava

ChunkGuard

by StiviKM · on Modrinth

A lightweight, high-performance chunk limiter that prevents entity-driven lag by enforcing smart, customizable limits on mobs, decorations, and vehicles.

⬇ Download on Modrinth

ChunkGuard is a lightweight, high-performance entity management plugin for Minecraft Paper 1.21+ servers. It protects your server's TPS and your players' client-side FPS by strictly limiting the number of specific entities and blocks that can exist within a single chunk, without breaking legitimate vanilla mob farms.

Key Features

Functionality

While standard lag-clearing plugins are fantastic for cleaning up dropped items, they don't solve the issue of a player placing 400 Item Frames in their storage room or breeding 200 cows in a 1x1 pen. These dense clusters of entities cause massive client-side frame drops and severe server-side ticking lag.

ChunkGuard acts as a strict, invisible boundary. It actively listens to player interactions, mob spawning, and block placements. If a player attempts to place a 21st Item Frame in a chunk where the limit is set to 20, the placement is instantly canceled, the item stays in their hand, and they receive a gentle warning in their action bar.

The Smart Spawning System

A common issue with chunk limiters is that they break player-built mob grinders. ChunkGuard solves this by evaluating the reason an entity spawned.

If a zombie spawns from a dungeon spawner or naturally in the dark, ChunkGuard allows it, ensuring your players' hard-built farms continue to yield drops. However, if a player tries to bypass server limits by spamming Zombie spawn eggs or using a dispenser, ChunkGuard will immediately step in and block the spawn once the chunk limit is reached. Note: Passive animals (like cows or pigs) are always limited, regardless of how they spawn, to prevent infinite breeding lag machines.

Permissions

Permission Description Default
chunkguard.bypass Bypass all chunk entity limits OP
chunkguard.reload Reload the configuration file via command OP
chunkguard.notify Receive admin notifications for limit violations OP

Installation & Configuration

ChunkGuard is a server-side plugin designed specifically for Paper 1.21+. Simply drop the JAR file into your plugins folder and restart your server.

The generated plugins/ChunkGuard/config.yml comes pre-configured with highly balanced, server-friendly defaults for every major entity type (e.g., max 30 Pigs, 20 Item Frames, 10 Minecarts per chunk). You can easily adjust these numbers, uncomment projectile limits, or toggle specific monitoring features to perfectly match your server's hardware constraints.

🛠 Support & Bug Reports

Found a bug or need help setting up the plugin?
Report issues directly on Discord.


Verified by MCModsHub

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

Explore more