Mob Limiter
Caps how many mobs can exist in a single chunk, preventing runaway spawning (farms, spawners, or
natural spawning in unloaded-then-reloaded areas) from tanking performance. Enabled by default.
Config file: module/mob-limiter/config.yml.
yaml
max-mobs-per-chunk: 50
# If set to true, mobs spawned from spawners will not be counted towards the chunk limit.
ignore-spawners: false
per-type-limits:
enabled: true
limits:
ZOMBIE: 10
SKELETON: 10
CREEPER: 8
SPIDER: 8
ENDERMAN: 5
VILLAGER: 15
COW: 12
SHEEP: 12
PIG: 12
CHICKEN: 15
IRON_GOLEM: 3
max-mobs-per-chunk— global cap on living entities per chunk, checked before any spawn is allowed to complete.ignore-spawners— whentrue, mobs that spawn from a mob spawner block don't count toward the chunk's limit (useful if you want farms to keep working while still capping natural spawns).per-type-limits— an additional, tighter cap for specific entity types, checked independently of the global limit. AnyEntityTypename not listed here isn't individually capped (only the globalmax-mobs-per-chunkapplies to it).
What counts
Every living mob counts, including ones Entity Clearing keeps for players: bred, tamed, named, leashed, ridden, whitelisted and passive mobs. Clears leave them alone, but breeding, spawn eggs and natural spawns are still capped. A newborn over the cap isn't born.
Left out of the counts, and never blocked from spawning:
- players,
- entities with a protection tag (
CLE_PROTECTEDorprotected-entity-tags), - stacked entities, when
protect-stacked-entitiesis on, - MythicMobs and InfernalMobs mobs, Citizens NPCs and plugin pets, when their protection is on,
- ModernShowcase, ItemsAdder, Oraxen and Nexo entities, when their protection is on,
- entities another plugin protects through the Developer API, unless that plugin asks for them to count.
Configurable in-game via the Mob Limiter panel in the Admin GUI.