Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
BetterBreed
Tamed animals' newborns stay next to their parent instead of spawning outside the pen, and denser pens keep breeding. Bonus: a dedicated server can keep your base running around a sign.
By Moochi
| Last updated | 5 days ago |
| Total downloads | 72 |
| Total rating | 0 |
| Categories | Mods Tweaks Server-side Client-side AI Generated |
| Dependency string | Moochi-BetterBreed-0.2.1 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2351README
BetterBreed
Tamed animals that breed where you want them to, and a base that keeps living while you are away.
Breeding
Two distances of the game's breeding, made shorter:
- Newborns stay next to their parent. The game spawns a newborn 2 m behind its parent: enough for a piglet to appear on the other side of the fence. BetterBreed brings that down to 1 m.
- Denser pens keep breeding. An animal will not get pregnant when too many animals of its kind stand within 10 m (about 4 or 5, depending on the species). BetterBreed only counts them within 5 m, so a well-filled pen does not stall.
Breeding runs on the computer that owns the animal: the player standing nearby, or the server. Install it on every player, and on the server. A player without the mod can still join; animals near them simply breed as in the base game.
Keep the base running (dedicated server, experimental)
In Valheim, a place only lives while a player stands nearby: as soon as everyone has left through a portal, animals stop breeding and growing and smelters stop working. A dedicated server could run them itself, but it only keeps the very center of the world running, where there is nothing.
Write BetterBreed on a wooden sign at your base. While at least one player is connected, the server keeps the area around the sign running (about 190 m across: put the sign next to your pens), as if a player stood next to it.
- Players come first. Whatever is near a player runs on that player's computer, exactly as without the mod: no lag on chests, carts, ships or fights at the base.
- Wild creatures are never run by the server. A monster left near the base stays frozen until a player comes back, instead of attacking your pens and buildings while nobody is there.
- No player connected, nothing runs. The game stops the world's clock when the server is empty.
On a player's game, this part does nothing.
Settings
BepInEx/config/moochi.valheim.betterbreed.cfg, re-read as soon as it changes, no restart needed.
| Setting | Default | |
|---|---|---|
BirthDistance |
1 |
Most meters between a parent and its newborn. A value at or above the game's changes nothing. |
CountRange |
5 |
Meters within which animals of the same kind are counted before a pregnancy. Same rule. |
Worlds |
* |
Worlds where the sign works, comma-separated, or * for all. Breeding applies everywhere. |
SignKeyword |
BetterBreed |
The text to write on the sign. Case does not matter. |
If several signs carry the keyword, one of them is used and the server log says which.
Log
At start-up, BepInEx/LogOutput.log should read:
BetterBreed v0.2.1 loaded.
Breeding: newborns at most 1 m from the parent, same-kind animals counted within 5 m.