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.
Chunk Cap Guard performs checks at a fixed interval and processes all loaded chunks in the current world:
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.
Assume the configuration monitors the following entities:
minecraft:zombieminecraft:skeletonA 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.
tyj cleannow Execute a cleanup immediately and reset the cleanup timer