You are viewing a potentially older version of this package. View all versions.
ZAP-Starborn_Breeding-1.0.3 icon

Starborn Breeding

A rare lucky birth: each time a tame animal breeds, the newborn has a small chance (1 in 30, adjustable) to get one star more than its parent. Wolves, boars, lox, moose, hens and asksvin.

By ZAP
Date uploaded 5 days ago
Version 1.0.3
Download link ZAP-Starborn_Breeding-1.0.3.zip
Downloads 200
Dependency string ZAP-Starborn_Breeding-1.0.3

This mod requires the following mods to function

ValheimModding-Jotunn-2.30.2 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.30.2
denikson-BepInExPack_Valheim-5.4.2360 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.2360

README

Starborn Breeding – a rare star for a lucky litter

Breed your tame animals as always. Now and then the Norns smile on a birth: the newborn comes into the world with one star more than its parent. The chance is small, 1 in 30 by default, so a lucky cub is something to remember. Vanilla breeding cannot raise stars at all: a cub always gets its parent's level. With Starborn Breeding, patient breeding can lift a whole line of 0-star wolves to 2 stars.

Animal Newborn Lucky
Wolf (and Wolfborn) Wolf cub cub with one star more
Boar Piglet piglet with one star more
Lox Lox calf calf with one star more
Moose Moose calf calf with one star more
Hen Egg egg with one star more, the chick hatches with it
Asksvin Egg egg with one star more, the hatchling hatches with it

Animals from other mods that breed the vanilla way are lucky too.

A lucky birth

  1. Tame and feed your animals as usual. They fall in love and give birth as in vanilla.
  2. At every birth the Norns roll once. With a chance of 1 in 30 the newborn gains a star.
  3. If they do, every player within 64 m sees it, with a short chime and a golden glow on the newborn:

The Norns smile on your herd Wolf Cub – born with one star

  • It stays for life. A lucky cub grows into a lucky wolf, and a lucky egg hatches into a lucky chick that grows into a lucky hen. Their young inherit the new level, as in vanilla.
  • Sometimes twice. After a lucky roll the Norns roll once more. At 1 in 30 a newborn gains two stars with a chance of 1 in 900 (The Norns smile twice on your herd).
  • Two stars at most. No newborn rises above 2 stars, the highest level vanilla shows. A 2-star parent has 2-star young, as before. A 1-star parent can only gain one more.
  • You can tell them apart. A lucky animal or egg keeps a golden line in its hover text: Norn-blessed: one star more at birth. A star also changes how wolves, boars, hens, moose and asksvin look.
  • Stars show. Every star makes an animal visibly bigger, at least +10 % per star, also moose and lox, which look the same in vanilla. Young animals grow with their stars too: each star closes a quarter of the gap to a grown animal, so a 2-star wolf cub is three quarters of a plain wolf, but young ones always stay smaller than grown ones. This also fixes a vanilla bug that made 1-star hens about half as big as plain ones. Animals with 3 stars or more (higher MaxStars, other mods) keep growing by the last step, and the world's enemy size setting stays.
  • A star is worth it. The game doubles a creature's drops for every star, and a lucky animal is a real 1-star animal: it drops twice the meat, hide and feathers (four times at 2 stars) and has more health and damage. Measured in game: a lucky-born 1-star wolf drops 5.6 items per kill, a 0-star wolf 2.4.
  • Eggs of starred hens cook. In vanilla an egg of a 1-star hen (quality 2) does not count for any recipe: no cooked egg, omelette, pancakes or cupcakes. Starborn Breeding counts every egg, whatever its quality, and cooking takes ordinary eggs first, so a lucky egg you keep for breeding is the last one in the pan.
  • Nothing else changes. Love, pregnancy time, the number of animals in a pen and the food they need stay as in vanilla.

The real thing

Vanilla breeding (Procreation): a fed tame animal next to a partner collects love points (hearts) over time. After 3 (lox 4) it is pregnant, and 60 s later (lox 120 s) the young is born. The young gets the level of the parent that carried it. A wild 1-star wolf you tamed has 1-star cubs; the stars of the other parent do not count. Starborn rolls at exactly that moment and adds its star on top.

How often luck comes at 1 in 30:

Births At least one lucky newborn
10 29 %
21 50 %
30 64 %
68 90 %
100 97 %
ChanceOneIn One star more Two stars more
10 10 % 1 in 100
30 (default) 3.3 % 1 in 900
100 1 % 1 in 10 000

Configuration

BepInEx/config/zap.starbornbreeding.cfg

Luck (server-synced, admin only):

  • ChanceOneIn (30): a newborn gains a star with a chance of 1 in this number. 1 makes every birth lucky, 0 turns the luck off.
  • ChancePerAnimal (empty): own chances for single animals, for example Wolf:20, Lox:50, Hen:0. The parent's prefab name counts first, then the newborn's (Wolf_cub, ChickenEgg). 0 turns the luck off for that animal. Animals not listed use ChanceOneIn.
  • LuckCanRepeat (on): after a lucky roll, roll once more at the same chance for another star. Off: never more than one extra star per birth.
  • MaxStars (2): luck never lifts a newborn above this many stars. Raise it only with a mod that knows higher levels.

Size (server-synced, admin only):

  • FixStarSizes (on): a star makes an animal bigger relative to its own model. Vanilla sets a fixed size per star, which shrinks 1-star hens.
  • MinStarStep (0.1): every star makes a grown animal at least this much bigger (+10 %).
  • YoungCatchUp (0.25): each star closes this part of the gap between a young animal and a grown one without stars.
  • StarGrowth (1): how much each star adds, times the game's step. 2 doubles it, 0 keeps sizes as they are without stars.
  • StarGrowthPerAnimal (empty): own StarGrowth per animal, for example Hen:2, Boar:1.5. Young ones use their kind's value.

Client:

  • Announce (on): message and chime when a lucky animal is born near you.
  • ShowBlessing (on): the golden line in the hover text of lucky animals and eggs.

Multiplayer and compatibility

  • The player whose game runs the animal rolls, once per birth, as vanilla handles the birth itself. The level is stored with the animal, so everyone sees the same stars.
  • Every player and the server need the mod. Requires Jötunn.
  • Works with Wolfborn (their cubs are wolf cubs; a lucky one grows into a 1-star wolf). Tested with Feeding Troughs: lucky hens eat at the hen bowls like any other. Tested with Cluck Fighters: a lucky hen turns into a fighter with her star and keeps her blessing. Drop mods such as Drop That keep the game's drops per star. Dragons from Elemental Dragons hatch from found eggs, not from breeding, so the mod leaves them alone.
  • Starborn Breeding changes no prefab and adds no item. You can add or remove it at any time; animals keep their stars.

Deutsch

Ein seltener Stern für einen glücklichen Wurf. Du züchtest deine zahmen Tiere wie immer. Ab und zu sind die Nornen einer Geburt hold: Das Junge kommt mit einem Stern mehr als sein Elterntier zur Welt. Die Chance ist klein, 1 zu 30, also etwas Besonderes. Im Grundspiel bekommt ein Junges immer genau die Stufe des Elterntiers; mit Starborn Breeding kann geduldige Zucht eine Linie von 0 auf 2 Sterne heben.

Welche Tiere: Wolf (und Wolfborn), Eber, Lox, Elch, Huhn und Asksvin, dazu Tiere anderer Mods, die wie im Grundspiel Junge bekommen. Bei Huhn und Asksvin bekommt das Ei den Stern, das Küken schlüpft damit.

Der Moment: Jeder Spieler im Umkreis von 64 m hört einen hellen Klang, sieht einen goldenen Schein am Neugeborenen und liest:

Die Nornen sind deiner Herde hold Wolfsjunges – mit einem Stern geboren

Für immer: Das Junge behält den Stern beim Großwerden, das Ei beim Schlüpfen, und seine eigenen Jungen erben ihn. Glückstiere und Glückseier tragen im Hovertext die goldene Zeile „Nornensegen: ein Stern mehr bei der Geburt“.

Sterne sieht man: Jeder Stern macht ein Tier sichtbar größer, mindestens +10 % pro Stern, auch Elch und Lox, die im Grundspiel gleich aussehen. Jungtiere wachsen mit ihren Sternen mit: Jeder Stern schließt ein Viertel der Lücke zum ausgewachsenen Tier, ein 2-Sterne-Welpe ist drei Viertel eines normalen Wolfs, bleibt aber immer kleiner als ein erwachsenes Tier. Nebenbei behoben: Im Grundspiel wurden 1-Sterne-Hennen nur halb so groß wie normale. Tiere mit 3 Sternen und mehr (höheres MaxStars, andere Mods) wachsen um den letzten Schritt weiter, und die Gegnergröße der Welt bleibt erhalten.

Ein Stern lohnt sich: Das Spiel verdoppelt die Beute eines Tiers für jeden Stern, und ein Glückstier ist ein echtes 1-Sterne-Tier: doppelt so viel Fleisch, Fell und Federn (bei 2 Sternen viermal so viel), dazu mehr Leben und Schaden. Im Spiel gemessen: Ein glücksgeborener 1-Sterne-Wolf lässt 5,6 Gegenstände fallen, ein 0-Sterne-Wolf 2,4.

Eier von Sternehennen lassen sich verkochen: Im Grundspiel zählt ein Ei einer 1-Sterne-Henne (Qualität 2) für kein Rezept, weder für gekochte Eier noch für Omelett, Pfannkuchen oder Cupcakes. Starborn Breeding zählt jedes Ei, egal welcher Qualität, und beim Kochen gehen gewöhnliche Eier zuerst weg: Ein Glücksei, das du zum Brüten aufhebst, landet zuletzt in der Pfanne.

Grenzen: Nach einem Glückswurf würfeln die Nornen noch einmal; zwei Sterne mehr gibt es mit 1 zu 900. Mehr als 2 Sterne gibt es nicht, ein 2-Sterne-Tier hat 2-Sterne-Junge wie bisher. Liebe, Tragzeit, Herdengröße und Futter bleiben wie im Grundspiel.

Einstellungen (zap.starbornbreeding.cfg, vom Server-Admin): ChanceOneIn (30; 1 = jede Geburt, 0 = aus), ChancePerAnimal (eigene Chancen je Tier, z. B. Wolf:20, Lox:50, Hen:0), LuckCanRepeat (zweiter Wurf, an), MaxStars (2). Größe: FixStarSizes (an), MinStarStep (0.1 = +10 % pro Stern), YoungCatchUp (0.25), StarGrowth (1; 2 = doppelt so viel Wachstum pro Stern), StarGrowthPerAnimal (z. B. Hen:2). Für jeden selbst: Announce (Nachricht und Klang) und ShowBlessing (die goldene Zeile).

Mehrspieler: Gewürfelt wird einmal pro Geburt beim Spieler, dessen Spiel das Tier gerade führt; die Stufe steht beim Tier, alle sehen dieselben Sterne. Alle Spieler und der Server brauchen die Mod. Getestet mit Feeding Troughs (Glückshennen fressen an den Hühnerschalen wie alle anderen), Cluck Fighters (eine Glückshenne wird mit ihrem Stern und ihrem Segen zum Kampfhahn), Wolfborn und Drop That.

CHANGELOG

Changelog

1.0.3

  • Animals with 3 stars or more (from a higher MaxStars or other mods) keep growing: each further star adds the game's last step again (boar and wolf +10 %, bear +20 %). Vanilla stops at 2 stars.
  • Bears keep the world's enemy size (world modifier and world level). The game's own star size overwrote it on the bear, and Starborn did too on plain bears.
  • Checked together with Pig Riding 1.1.0, Wolf Riding 1.1.0 and Bear Riding, and on its own without them.

1.0.2

  • Stars show. Every star makes an animal visibly bigger, at least +10 % per star: hens, boars, wolves, asksvin, moose and lox (the last two did not grow in vanilla), bears as in vanilla (+30 %, +50 %).
  • Young animals grow with their stars too: each star closes a quarter of the gap to a grown animal without stars. A 2-star wolf cub is three quarters of a plain wolf, and young ones always stay smaller than grown ones.
  • Fixes a vanilla bug: the game set a fixed size per star instead of multiplying the model's own size, so a 1-star hen shrank to about half a hen (and Bear Riding's 1-star cub jumped to a grown bear's size).
  • New server settings: FixStarSizes, MinStarStep, YoungCatchUp, StarGrowth and StarGrowthPerAnimal (for example "Hen:2" for hens that grow twice as much per star).

1.0.1

  • Eggs of starred hens and asksvin now count for recipes (cooked egg, mushroom omelette, pancakes, Viking cupcake and the like). In vanilla a hen's egg of quality 2 or more was never counted. Cooking takes ordinary eggs first and keeps lucky ones for last.
  • A lucky hen that turns into a Cluck Fighter keeps her Norn blessing (the star always stayed).
  • Checked with the ZAP pack: lucky animals drop twice as much per star like any other (also with Drop That), and lucky hens eat at Feeding Troughs bowls.

1.0.0

  • First release: every birth of a tame animal has a small chance (1 in 30 by default) to give the newborn one star more than its parent. Works for wolves and Wolfborn, boars, lox, moose, and the eggs of hens and asksvin.
  • After a lucky roll the Norns roll once more for another star (1 in 900 at the default), never above 2 stars. Chance, repeat, cap and own chances per animal are server settings.
  • Players nearby see a message with a chime and a golden glow. The star stays when the young grows up or the egg hatches, and lucky animals and eggs say so in their hover text.