Adaptive Mob Control (AMC)
Smarter natural mob spawning. Individual mob limits. Less unnecessary entity processing.
Adaptive Mob Control is a lightweight, server-side Minecraft mod designed to control natural mob populations without completely disabling mob spawning or replacing Minecraft's spawning system. It gives server owners fine-grained control over each individual mob species, both locally around players and across each dimension.
Instead of imposing a single shared limit on all monsters or animals, AMC allows zombies, skeletons, creepers, cows, modded creatures and other species to have their own independent limits. An optional horizontal and vertical spawn range also helps prevent mobs from spawning far above or below players.
Built by TNTStudios for multiplayer servers, modpacks and single-player worlds.
| Minecraft | Java Edition 1.21.1 |
| Mod loader | NeoForge (tested with 21.1.264) |
| Java | 21 |
| Environment | Server-side; also works in single-player |
| Client installation | Not required to join a server |
| Additional mod dependencies | None |
| Configuration | JSON, editable and reloadable in-game |
Why was Adaptive Mob Control created?
Adaptive Mob Control was developed after a modded Minecraft server for 80 content creators experienced drops to 8–9 TPS. Natural mob spawning was identified as a major contributor to the performance issues.
AMC was created to reduce unnecessary natural spawning through independent, adaptive per-species limits and configurable horizontal and vertical spawn ranges, without completely disabling natural mob spawning.
Features
- Independent per-species limits: every mob type has its own budget; no shared AMC monster or animal cap.
- Local and dimension-wide limits: control crowding near individual players while scaling the dimension budget with eligible player count.
- Horizontal and vertical spawn control: a configurable cylinder follows each player, including underground.
- Modded mob support: automatically assign individual fallback limits to supported external mob types, or configure them explicitly by registry ID.
- Early spawn rejection: prevent supported unwanted natural spawn attempts before the mob is constructed.
- Secondary insertion protection: check supported direct mob insertions that bypass the usual placement check.
- Natural spawning by default: breeding, spawn eggs, spawners and commands remain unaffected under the default configuration.
- Protected mobs and species exemptions: preserve important gameplay entities and protected instances through supported insertion and cleanup paths.
- Live administration: enable, disable, reload settings, change species caps and inspect statistics without restarting the server.
- Bounded reactivation cleanup: remove eligible excess natural mobs gradually when explicitly re-enabling AMC.
- Low-overhead tracking: no recurring full-world entity census, forced chunk loading or asynchronous mob processing.
- English and Spanish: server-resolved messages in English, Mexican Spanish and European Spanish.
How does AMC work?
1. Independent limits for every species
Minecraft already uses category-wide mob caps. AMC leaves those vanilla caps untouched and adds a separate layer of control for each species. Its default hostile, animal and other classifications only provide initial individual limits; they are not shared population pools.
For example, with a zombie limit of 5 and a skeleton limit of 5, reaching the zombie limit does not consume any skeleton slots.
ONE PLAYER — EXAMPLE LOCAL POPULATION
Zombies [X][X][X][X][X] 5/5 FULL
Skeletons [X][X][ ][ ][ ] 2/5 3 slots available
Cows [X][X][X][ ][ ][ ] 3/6 3 slots available
Pigs [X][ ][ ][ ][ ][ ] 1/6 5 slots available
New zombie --> REJECTED by AMC
New skeleton --> May pass AMC
New cow --> May pass AMC
Having free slots does not guarantee a spawn. Minecraft and other mods still determine whether a spawn is valid.
2. Local limits and adaptive dimension budgets
AMC uses two population checks for each configured species:
- Local limit: the maximum number of controlled mobs of that species within each player's local area.
- Dimension-wide limit: the species limit multiplied by the number of eligible players in that dimension.
Dimension budget = Individual species limit x Eligible players
For example, with a zombie limit of 5:
| Eligible players in a dimension | Local zombie limit per player | Dimension-wide zombie limit |
|---|---|---|
| 1 | 5 | 5 |
| 5 | 5 | 25 |
| 20 | 5 | 100 |
| 50 | 5 | 250 |
| 100 | 5 | 500 |
With 20 eligible players, the default individual limits also give skeletons a separate budget of 100 and cows and pigs separate budgets of 120 each.
These are AMC ceilings, not spawn targets. The actual population may be lower because vanilla spawning rules, vanilla caps, biome availability and other mods still apply. Each dimension has its own independent accounting; spectators are excluded.
3. Players together versus players far apart
Simply multiplying a cap by the number of players could allow too many mobs in one small area. AMC also checks the local population of every eligible player whose area contains the candidate.
Players together — overlapping areas
PLAYER A AREA PLAYER B AREA
.-----------------. .-----------------.
/ \_____/ \
| A Z Z Z Z Z B |
\ / \ /
'-----------------' '-----------------'
Shared zombies: 5
Local count A: 5/5
Local count B: 5/5
Dimension: 5/10
Another zombie in the overlap --> REJECTED
A mob in the overlapping area consumes one slot for each affected player but only one slot in the dimension-wide count. A candidate must fit every overlapping local budget, even if the dimension still has spare capacity.
Players far apart — independent local areas
PLAYER A AREA PLAYER B AREA
.---------------. .---------------.
/ A Z Z Z Z Z \ / B Z Z Z \
\ / \ /
'---------------' '---------------'
Local count A: 5/5 Local count B: 3/5
Dimension: 8/10
Near A --> REJECTED Near B --> May pass
Both players can have their own local population, while AMC still respects the combined dimension-wide budget. The diagrams are simplified illustrations, not maps drawn to scale.
4. Horizontal and vertical spawn range
By default, AMC checks a cylindrical area centered on the player's current position, rather than using an unrestricted vertical range. This helps reduce unnecessary spawns in caves far beneath surface players or in areas high above them.
| Range setting | Default |
|---|---|
| Horizontal radius | 70 blocks |
| Vertical half-height | 15 blocks |
| Minimum distance (spherical) | 12 blocks |
| Total vertical span | 30 blocks |
Side view — player at Y=80
OUTSIDE AMC VERTICAL RANGE
Y=110 Z Z REJECTED*
Y=95 +---------------------------------------+
| Potential natural spawn area |
Y=80 | Z ( PLAYER ) Z |
| |
Y=65 +---------------------------------------+
Y=50 Z Deep cave REJECTED*
Y=20 Z Z REJECTED*
|<------------ 140 blocks ------------->|
70-block radius
Top view — horizontal radius
Beyond 70 blocks
X
.-------------.
.-' '-.
/ Z Z \
| |
| .---------. |
| | Player | |
| '---------' |
| Minimum distance |
\ Z /
'-. .-'
'-------------'
Z = Potential spawn, subject to all other rules
X = Outside this player's horizontal range
*Assuming no other eligible player provides coverage and the species is not exempt. The minimum-distance exclusion is spherical, not cylindrical, and applies to all eligible players. The normal vanilla natural-spawner exclusion of 24 blocks remains in place, so lowering AMC's minimum does not override Minecraft's own minimum distance.
The cylinder follows players as they move. If a player enters a cave, the eligible vertical band moves underground with them. Another player underground can also make a candidate eligible even when a surface player is closer in ordinary 3D distance. AMC checks all relevant players instead of relying on just the nearest one.
Disabling the spawn range filter does not disable population control: AMC retains local counts within its fallback bounds of 128 horizontal and 128 vertical blocks, along with dimension-wide limits.
5. Spawn decision flow
Minecraft / supported mod spawn attempt
|
v
Controlled spawn reason?
| |
No Yes
| |
v v
Bypass AMC Exempt species?
| |
Yes No
| |
v v
Bypass AMC Check AMC limits
and spawn range
| |
Fail Pass
| |
v v
REJECT Continue normal
spawn processing
|
v
Final insertion gate
(current state, origin,
instance protections)
| |
Reject Accepted
|
v
Confirmed entity tracking
updates the population
This is a conceptual flow, not the exact internal order of every rejection check. AMC can reject an eligible natural spawn before entity construction; the final insertion gate also handles supported direct insertions without an earlier placement check. Successful tracking, rather than just an attempted admission, confirms the new population entry. AMC never creates replacement mobs, forces successful spawns or fills unused slots.
What mobs are affected?
By default, AMC controls the NATURAL spawn reason. Administrators may change the controlled reasons if their server needs different behavior.
| Spawn source | Default behavior |
|---|---|
| Natural spawning | Controlled |
| Chunk generation | Not controlled by default |
| Animal breeding | Not controlled by default |
| Mob spawners | Not controlled by default |
| Trial spawners | Not controlled by default |
| Spawn eggs | Not controlled by default |
| Commands / summoning | Not controlled by default |
| Unclassified custom insertions | Not controlled in standard mode |
| Existing mobs loaded from disk | Not treated as new spawns; matching tracked mobs can still count |
| Dimension transfers | Not treated as new spawns; matching populations are tracked in the destination |
The late insertion gate protects named, persistent, owned, leashed and riding mobs. These protections also apply to reactivation cleanup. Naturally spawned mobs that are later named or tamed can still contribute to the population count; protection from removal is not the same thing as exemption from counting.
At the early placement check, an entity has not yet been constructed, so instance-specific protections cannot be inspected. For scripted mechanics that use natural placement checks before attaching protection, an explicit species exemption may be necessary.
Installation
- Install Minecraft Java Edition 1.21.1, NeoForge and Java 21 on your server. The release was built and tested against NeoForge 21.1.264.
- Place the downloaded Adaptive Mob Control
.jarfile inside the server'smods/directory. - Start the server to generate
config/adaptivemobcontrol.json. - Optionally customize the generated configuration and run
/amc reloadas an operator.
Players do not need AMC installed on their clients to connect. For single-player, install AMC in the local NeoForge instance; the same logic runs on the integrated server.
Configuration
File: config/adaptivemobcontrol.json
AMC generates individual entries for 82 vanilla mob IDs. Every entry can be customized separately.
Default individual limits
| Mob classification | Default limit for each species |
|---|---|
| Hostile | 5 |
| Land animal (creature) | 6 |
| Water ambient (including schooling fish) | 8 |
| Water creature / ambient | 4 |
| Underground water / axolotl | 3 |
| Miscellaneous and designated special species | -1 |
Again, these values are per species, not shared category limits.
Default exemptions include villagers, wandering traders, trader llamas, allays, golems, wardens, breezes, elder guardians, withers and ender dragons. Remove a species from exemptEntities to apply AMC range rules or an assigned ceiling to it.
Example configuration
The following is a valid JSON excerpt showing selected documented settings. It is not the complete generated configuration; keep the other generated fields and entries when applying these changes.
{
"spawnRange": {
"enabled": true,
"horizontal": 70,
"vertical": 15,
"minimumDistance": 12
},
"entityCaps": {
"minecraft:zombie": 3,
"minecraft:skeleton": 5,
"minecraft:cow": 8,
"examplemod:forest_stalker": 2
},
"externalDefaults": {
"enabled": true,
"hostile": 5,
"animal": 6,
"other": -1
},
"affectedReasons": ["NATURAL"],
"compatibility": "standard",
"language": "en_us"
}
examplemod:forest_stalker is a fictional registry ID used to illustrate modded mob configuration. Replace it with a real ID from your modpack.
| Setting | Description |
|---|---|
spawnRange.enabled |
Enables the horizontal, vertical and minimum-distance spawn filters. |
spawnRange.horizontal |
Cylinder radius in blocks (1–128). |
spawnRange.vertical |
Cylinder half-height in blocks (0–128). |
spawnRange.minimumDistance |
Spherical exclusion radius in blocks (0–128). |
entityCaps |
Individual limits, indexed by entity registry ID. |
externalDefaults.enabled |
Enables automatic individual fallback caps for external mobs. Disable to use only explicit external limits. |
externalDefaults.hostile |
Fallback limit for each supported external hostile species. |
externalDefaults.animal |
Fallback limit for each supported external animal species. |
externalDefaults.other |
Fallback limit for each other supported external species. |
affectedReasons |
Spawn reasons that AMC controls. Defaults to NATURAL. |
exemptEntities |
Species excluded from AMC enforcement. |
compatibility |
standard or strict. |
language |
en_us, es_mx or es_es. |
diagnostics |
Enables configuration and status logging. |
Understanding special cap values
| Value | Effect |
|---|---|
| Positive integer | Maximum controlled population per local player area, scaled by eligible player count for the dimension. |
0 |
Blocks new controlled spawns of that species. |
-1 |
Disables the species population ceiling; range restrictions still apply unless exempt. |
Setting a cap to zero does not immediately delete existing mobs. Ordinary cap changes do not initiate cleanup.
Example use cases
Reduce naturally spawned creepers:
/amc entity set minecraft:creeper 2
Block new natural zombie spawns:
/amc entity set minecraft:zombie 0
Remove the population ceiling for cows, keeping range rules:
/amc entity set minecraft:cow -1
Make the vertical spawning band smaller:
/amc range vertical 10
Add a limit for a modded species:
/amc entity add examplemod:forest_stalker 2
Use set instead of add if that species already has an explicit entry. Removing an explicit entry restores its individual fallback; it does not necessarily make the species unlimited.
Commands
All commands require operator permission level 4. /adaptivemobcontrol is an alternative root command for /amc. Dedicated-server consoles omit the leading slash.
| Command | Description |
|---|---|
/amc |
Show mod status. |
/amc status |
Show current state, compatibility mode and language. |
/amc enable |
Enable and persist AMC. A disabled-to-enabled transition also schedules excess-mob cleanup. |
/amc disable |
Immediately disable AMC restrictions and release its runtime indexes. |
/amc reload |
Validate and reload the configuration without restarting. |
/amc entity add <id> <limit> |
Add an explicit species cap. |
/amc entity set <id> <limit> |
Update an existing explicit species cap. |
/amc entity remove <id> |
Remove an explicit entry and restore its fallback. |
/amc entity get <id> |
Display the limit for a species. |
/amc entity list |
List explicit species entries. |
/amc range horizontal <blocks> |
Update horizontal radius. |
/amc range vertical <blocks> |
Update vertical half-height. |
/amc range minimum <blocks> |
Update minimum spawn distance. |
/amc stats |
Display per-dimension population and enforcement statistics. |
/amc stats <id> |
Display statistics for a specific species. |
Changes are saved before taking effect. A failed reload leaves the current valid settings active. Invalid configuration on first startup leaves AMC disabled until the file is fixed and reloaded.
Statistics include populations, limits, rejections, admissions and confirmed tracking events. They describe the current tracking session; population may include mobs restored from disk and therefore need not equal the confirmation counter.
Automatic excess-mob cleanup on reactivation
AMC normally prevents new controlled spawns instead of constantly deleting existing entities. However, a server may accumulate a large natural mob population while AMC is disabled. When /amc enable transitions it from disabled to enabled, AMC rebuilds its population index and schedules a single bounded cleanup pass.
/amc disable
|
v
Existing mobs remain; natural spawning is no longer restricted by AMC
|
v
/amc enable
|
v
Rebuild index synchronously from loaded entities
|
v
Queue verified natural-origin candidates
|
v
Examine up to 64 candidates per dimension, per tick
|
+--> Protected / no longer excessive --> KEEP
|
+--> Eligible and still excessive ----> DISCARD (no drops)
|
v
Queue finishes --> Normal spawn control continues
For example, assume one eligible player has 12 loaded, unprotected natural zombies within the local area and the cap is 5. If nothing changes during cleanup, reactivation can remove the 7 excess zombies. Cleanup checks current bounds, population and protections before discarding each candidate; it is not an unconditional kill command.
Important: cleanup removes mobs without drops. Its candidate-processing ceiling is 64 per dimension per tick, not a guaranteed removal rate. The initial rebuild is synchronous and may cause a visible administrative tick on very large worlds. An empty dimension has a zero adaptive budget; unprotected eligible natural mobs there may be removed during reactivation. Named, persistent, owned, leashed, riding and exempt mobs are protected. A player leaving the dimension or changing game mode cancels remaining cleanup for that dimension.
Ordinary reloads, cap edits, startup with AMC already enabled and player departures do not start a cleanup pass. Back up valuable worlds before deliberately reactivating AMC.
Performance and benchmarks
AMC targets unnecessary mob population and the cost of processing those entities. It is not a general-purpose TPS optimizer, and it does not make all spawning work free: Minecraft still performs its normal spawn selection and AMC adds its own eligibility checks.
The release was tested across 16 dedicated-server benchmark trials, using 1, 20, 80 and 100 connected Minecraft-protocol clients grouped in the same location. All trials maintained 20 TPS. Below is the comparison between the baseline without AMC and AMC enabled, using the mean milliseconds per tick (MSPT) and end-of-window loaded mob counts.
| Connected clients | Mean MSPT without AMC | Mean MSPT with AMC | Loaded mobs without AMC | Loaded mobs with AMC |
|---|---|---|---|---|
| 1 | 2.91 | 2.04 | 149 | 83 |
| 20 | 3.68 | 2.71 | 149 | 97 |
| 80 | 8.46 | 6.11 | 145 | 97 |
| 100 | 10.26 | 6.68 | 147 | 93 |
100-client benchmark — lower is better
Mean MSPT (approximately 1 # = 0.5 ms)
Without AMC ##################### 10.26 ms
With AMC ############# 6.68 ms
Loaded mobs (approximately 1 # = 5 mobs)
Without AMC ############################# 147
With AMC ################### 93
In this specific 100-client test, AMC was associated with approximately 35% lower mean MSPT and 37% fewer loaded mobs. Both configurations sustained 20 TPS, so this represents additional tick-time headroom rather than an increase above 20 TPS. These results are specific to the tested workload, not a universal performance guarantee.
| 100-client measurement | Without AMC | AMC disabled | AMC enabled | AMC enabled + extra spawn pressure |
|---|---|---|---|---|
| TPS | 20.00 | 20.00 | 20.00 | 20.00 |
| Mean MSPT | 10.26 | 9.39 | 6.68 | 6.59 |
| P95 MSPT | 12.83 | 11.84 | 8.00 | 7.96 |
| Natural spawning (ms/tick) | 0.578 | 0.581 | 0.771 | 0.802 |
| Entity processing (ms/tick) | 1.774 | 1.694 | 1.044 | 1.058 |
| Instrumented AMC handlers (ms/tick) | 0.000 | 0.001 | 0.030 | 0.039 |
| Loaded mobs | 147 | 149 | 93 | 97 |
AMC's inclusive spawn checks increase measured natural-spawning cost in this test, while entity processing cost decreases. At 100 clients, the measured enabled AMC handlers accounted for approximately 0.030 ms per tick (excluding some small hooks and platform dispatch). Timings overlap and include instrumentation overhead; do not add these columns to reconstruct total MSPT.
Technical design
AMC integrates with Minecraft and NeoForge's existing spawn and entity lifecycle rather than replacing the natural spawner.
SERVER DIMENSION
|
+-------------+-------------+
| |
Player index Species index
128 x 128 columns 64 x 64 x 64 cells
| |
Eligible nearby players Tracked live mobs
| |
+-------------+-------------+
|
Local spawn checks
+ dimension budget
|
Allow / reject
- Early rejection: supported server-thread natural checks can be vetoed at
SpawnPlacements.checkSpawnRulesbefore the placement predicate or entity construction. - Final gate: NeoForge lifecycle events allow AMC to inspect supported new insertions, with origin and instance protections. Matching early-placement results are reusable once and invalidated when relevant state changes.
- Confirmed tracking: population entries are added only after successful tracking, avoiding phantom entries from canceled or duplicate insertions.
- Spatial indexing: independent per-dimension species indexes and player buckets reduce the need to inspect unrelated entities or players. Local queries stop once their relevant cap is reached.
- Fast saturation checks: a full dimension-wide species budget can usually reject a candidate before more expensive local queries. Local mob counting may also be skipped if the entire species population is below its local cap.
- Lifecycle handling: movement, death, despawn, chunk visibility, saved mob loading and dimension transfers update the appropriate tracking state.
- No recurring global scan: AMC does not periodically scan every entity, request chunks, create new mobs or replace vanilla category limits. Rebuilds happen on specific administrative/configuration transitions.
Very high custom caps or many overlapping player areas can make successful local queries more expensive. AMC is designed to keep work bounded where practical, not to guarantee constant-time processing for every spawn attempt.
Compatibility with other mods
AMC supports vanilla mobs and external mobs that use supported Minecraft/NeoForge placement and insertion paths. Automatic external defaults are applied independently to each eligible species. Custom registry IDs can be configured explicitly, and IDs for temporarily uninstalled mods are preserved in the configuration.
| Mode | Behavior |
|---|---|
standard (default) |
Controls identifiable configured spawn reasons. Recommended starting point for modpacks. |
strict |
Also checks newly inserted mobs whose spawn origin cannot be identified. Test scripted encounters carefully before enabling. |
Custom entity systems that bypass the world lifecycle, insert mobs as saved entities, use unsupported background spawn threads or maintain independent storage may not be fully covered. Third-party spawn retry loops may still consume CPU outside AMC. The mod never requests a retry.
The runtime enforcement targets actual Mob instances. Some registered living entities may appear in the command catalog without being enforceable mobs. An external mob type may first be recognized at the final insertion gate before subsequent early-placement checks can cover that type.
AMC tracks visible/loaded mobs with identifiable configured origins, not every mob stored in an unloaded region file. Existing populations may temporarily exceed caps after movement, chunk loads or administrative changes. That is expected and does not trigger continuous deletion.
Frequently asked questions
Do players need to install AMC?
No. AMC is required on the server, not on connecting clients. It also works in single-player when installed locally.
Does this replace vanilla mob caps?
No. Vanilla categories, biome weights, group sizes, spawn costs, lighting and placement rules remain active. AMC adds individual restrictions on top of them.
Does it increase spawns when more players join?
No. More eligible players increase the dimension-wide ceiling, but AMC does not create mobs or guarantee that the ceiling will be reached.
Will farms stop working?
Natural-spawn-based farms can be affected by species caps and range settings. Breeding and conventional spawner mechanics are not controlled by default. Review affected reasons and test your farms before deployment.
Can I disable a specific modded creature without blocking an entire category?
Yes. Assign the species a cap of 0 using its exact registry ID, provided its spawning path is supported and it is not exempt.
Why do I see more mobs than the configured limit?
The limit is a gate for new controlled spawns, not a continuous hard population clamp. Existing saved mobs, player movement, transfers, overlapping areas, changes in player count and uncontrolled or unknown origins can affect the observed population. Use /amc stats <id> to inspect the tracked species population.
Can I turn off only the population ceiling or only the range filter?
Yes. A cap of -1 disables that species' ceiling while retaining applicable range checks. Turning spawnRange.enabled off retains population control with fallback local bounds.
Does AMC delete mobs automatically?
Not continuously. A deliberate disabled-to-enabled transition can perform a one-time, bounded cleanup of eligible excess natural mobs. Read the reactivation section before using it on a valuable world.
Does AMC improve FPS or guarantee 20 TPS?
No guarantee. AMC is primarily a server-side population-control mod. Fewer unnecessary entities can reduce entity processing, but server performance depends on many other factors. It is not a client rendering optimization mod.
Future plans
Adaptive Mob Control is currently available for Minecraft 1.21.1 on NeoForge. I plan to port AMC to more Minecraft versions in the future so that more server owners, modpack creators and players can benefit from the same individual mob controls and configurable spawning ranges.
Additional supported versions will be announced as their ports are completed and tested.
Release validation
The initial release passed 17 documented integration check groups, including independent species caps, overlapping and separated players, horizontal/vertical bounds, unloaded locations without chunk acquisition, external mob defaults, entity movement, despawn, breeding and spawners, protected mobs, reactivation, saved mob loading, dimension transfers, spectators, permissions, invalid configuration rollback and language support.
The production artifact was built using Java 21. QA fixtures and protocol-test clients are separate from the production mod.
Adaptive Mob Control — Developed by TNTStudios.
Designed for server owners who want to control mob populations without sacrificing the natural feel of Minecraft.

