About Livestock Balance
Vanilla livestock has three limits: a server-wide cap per species, a cap on free range herds and a floor area per head in pens. A player can still keep several free range herds side by side or build one very large pen. On a long wipe that ends in bases with a hundred cows and a server that pays for every one of them.
Livestock Balance slows breeding down as a herd grows and stops it at a herd size you set. Nothing is killed and no animal is removed. Existing herds stay as they are; they just stop growing.
How a herd is counted
- Inside building privilege: all animals that stand inside the same tool cupboard zone.
- Outside building privilege: all owned animals of one owner that stand outside any tool cupboard zone, anywhere on the map.
Cows and sheep are counted together. Chickens are not affected.
What happens
Slower breeding. After a birth the mother gets her normal vanilla calving cooldown, multiplied by the size of her herd:
multiplier = 1 + (animals - free animals) * percent per animal / 100
The multiplier never goes below 1 and never above the configured maximum. With the default settings a herd of 15 under one cupboard gives a cooldown of x2, a herd of 30 gives x5.
Herd size limit. Once a herd reaches the limit, conception is refused and the female goes on her normal breeding cooldown. When the herd drops below the limit again (animals sold, slaughtered, moved), breeding resumes on its own.
Animals that are already pregnant are left alone.
Performance
The plugin keeps no list of its own and runs no timers. It reads the game's own livestock registry and counts a herd only at the moment a calf is born or a conception is attempted.
Configuration
{ "Inside building privilege": { "Animals before breeding slows down": 10, "Extra breeding cooldown per animal above that (%)": 20.0, "Maximum cooldown multiplier": 5.0, "Herd size limit (0 = no limit)": 30 }, "Outside building privilege": { "Animals before breeding slows down": 5, "Extra breeding cooldown per animal above that (%)": 30.0, "Maximum cooldown multiplier": 5.0, "Herd size limit (0 = no limit)": 15 } }
- Animals before breeding slows down: herd size that breeds at vanilla speed.
- Extra breeding cooldown per animal above that (%): how much longer the cooldown gets for every animal above that number.
- Maximum cooldown multiplier: upper bound for the slowdown.
- Herd size limit: at this size the herd stops breeding. 0 turns the limit off.
If the config file contains a JSON error, the plugin logs where the error is, runs on default values and does not overwrite your file.
Console command
livestockbalance.status (server console, RCON or admin). Lists every herd under a cupboard and every owner herd outside cupboards with its size, current cooldown multiplier and whether the limit is reached.
Permissions
None. The rules apply to every player.
QuoteNotes
- Works next to the vanilla convars livestock.maxperspecies, livestock.maxfreerangeherd and livestock.breedingfloorperhead. Whichever limit is reached first stops breeding.
- A second cupboard splits a base into two herds. If that matters on your server, limit cupboards per player with a plugin of your choice.