You are viewing a potentially older version of this package. View all versions.
Zenox-UnlimitedBreeding-1.1.0 icon

UnlimitedBreeding

Removes only the vanilla 'too many animals/eggs nearby' limit so tamed animals keep breeding and hens keep laying eggs. Optional own cap and radius. Everything else stays vanilla.

Date uploaded a week ago
Version 1.1.0
Download link Zenox-UnlimitedBreeding-1.1.0.zip
Downloads 224
Dependency string Zenox-UnlimitedBreeding-1.1.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 icon
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.2350

README

UnlimitedBreeding

UnlimitedBreeding screenshot

Removes only Valheim's "too many animals nearby" restriction. In vanilla, breeding and egg laying stop once a pen holds a few animals (or eggs) within about 10 m - this mod lets tamed animals keep breeding and hens keep laying eggs past that limit.

Everything else stays exactly as in vanilla: taming, feeding/hunger, pregnancy time, breeding chance, growth, egg hatching and normal spawning are untouched. It works for every animal that uses Valheim's shared breeding system (boars, wolves, lox, hens, ...).

What it changes

Vanilla checks, before a tamed animal may start breeding or laying an egg, how many adults of its kind plus how many offspring/eggs are within its check radius, and refuses once that reaches the animal's limit. This mod only replaces that single comparison. All other conditions (tamed, not hungry, not alarmed, partner nearby, love points, ...) are still checked by the game as usual.

Configuration

Settings live in BepInEx/config/com.cube.unlimitedbreeding.cfg, generated on first run:

Setting Default Description
BypassNearbyBreedingLimit true Ignore the nearby limit for animal breeding.
BypassNearbyEggLimit true Ignore the nearby limit for egg laying (hens). Set breeding to false and eggs to true for "eggs only".
MaxNearbyCreatures 0 0 = no limit at all. A number above 0 = your own cap instead (breeding / egg laying stops once that many animals + eggs are nearby).
NearbyRadius 0 Radius in meters used to count animals and eggs for your own cap. 0 = the animal's vanilla radius. Only used while MaxNearbyCreatures is above 0.
DebugLogging false Logs (at most once a minute per animal) when the vanilla limit would have blocked something.

Eggs

With unlimited egg laying a pen can fill up with hundreds of egg objects (which costs FPS), so there is an optional pickup:

Setting Default Description
PickupKey Shift+E Press to collect all eggs within PickupRadius into your inventory. Set to None to turn the key off.
AutoPickup false Collect eggs in the radius automatically (about every 2 seconds, while your inventory has room).
PickupRadius 10 Radius in meters for the key and the automatic pickup.
SkipHatchingEggs true Leave eggs that are currently warm/hatching alone.

Multiplayer (experimental)

Setting Default Description
ClaimOwnershipOfBreeders false Take over ownership of the tamed breeding animals around you, so the mod also works for them when other players near the farm don't have it installed.
ClaimOwnershipRadius 30 Radius in meters in which animals are claimed.

Multiplayer

Breeding is decided by whichever player's game currently "owns" the animal - normally someone standing near the farm. By default everyone who plays near your animals should have the mod installed; otherwise the vanilla limit applies while a player without it owns them. The dedicated server itself does not need it. With ClaimOwnershipOfBreeders on, a player who has the mod takes over the animals around them (other players don't need to do anything and see no difference), so one player with the mod is enough while they are near the farm.

Credits

Created by Zenox.

CHANGELOG

Changelog

1.1.1

  • Logging only, no gameplay changes: the log now contains one line with every setting that differs from its default, which makes bug reports easier to check.

1.1.0

  • Added an egg pickup: Eggs.PickupKey (default Shift+E) collects every egg within Eggs.PickupRadius into your inventory, and Eggs.AutoPickup (off by default) does it automatically. Eggs that are currently hatching are skipped (SkipHatchingEggs). Unlimited egg laying fills pens with many egg objects, which costs FPS - this keeps them in check.
  • Added the experimental option Multiplayer.ClaimOwnershipOfBreeders (off by default): you take over ownership of the tamed breeding animals around you, so the mod also works for them when other players near the farm don't have it installed (breeding is decided by whoever owns the animal). A marker on the animal keeps two players with the mod from taking it back and forth.

1.0.0

  • Initial release: removes only the vanilla "too many animals/eggs nearby" restriction from breeding and egg laying (shared breeding system: boars, wolves, lox, hens, ...). Separate switches for animals and eggs, optional own cap (MaxNearbyCreatures) with an optional counting radius (NearbyRadius), and optional debug logging.