Carturs Feeding Trough
A buildable trough your animals eat out of. Fill it and they come, so taming and breeding stop needing food thrown on the floor. Optional: more animals per breeding pen, more tameable animals, drops from fed animals. Taming bar with the time left.Changelog
1.2.1
- Animals that eat Raw Fish now eat caught fish. A fish caught with a rod (Perch, Pike, Tuna and the rest) is a different item from Raw Fish, so a Neck, a bear or a Hatchling given one walked past it. Anything that eats Raw Fish now eats every fish the game counts as a fish, from a trough or off the ground. A fish lying on the ground also sits on a layer the animals' food search never looks at, so loose fish are now looked for as well, only while they are out of water (a live fish in a pond is left alone).
- Tested in the game (Valheim 1.0.20, Release build): a tamed Neck ate a caught fish off the ground in 12 seconds, the same as Raw Fish, and out of a trough (6 fish in it, then 5, and the animal stopped being hungry). Not tested: the other kinds of caught fish, other animals eating fish, multiplayer.
1.2.0
Cartur's Husbandry, which was never released on its own, is part of the trough now. Every new setting is off or at the game's own value, so an existing trough, pen and config behave as before.
- Breeding limits.
MaxCreaturesMultiplier(1 = the game's limit),MaxCreaturesMinimum,TotalCheckRangeOverrideandPartnerCheckRangeMultiplier. The game stops breeding when the adults plus the young near a pen reach 4 to 10 depending on the animal (Procreation.Procreate, read from the game's code); this lifts that. Applied when an animal loads, so restart the game after changing them. - More tameable animals.
MoreTameableAnimalsmakes the bear (Bjorn), Neck, Hatchling and Deathsquito tameable and able to breed into more of themselves.ExtraTameablesadds any other creature, ones from other mods included, asPrefab:Donor:Food,Food;....ListTameCandidateswrites the creatures that could be added to the log. Creatures without MonsterAI and Humanoid (deer, hares, seals) cannot eat and cannot be added. - Passive drops.
PassiveProduction,ProductionInterval,ProductionPercent. A fed tame animal gives a share of its non-food, non-trophy drops on a timer, without being killed. Going hungry restarts the count. - Tested in the game (Valheim 1.0.20; the first runs on a Debug build, the last ones on the Release build): with the multiplier at 4, 8 tamed boars made 19 young and stopped near the cap (14 young on the Release build), and at 1 they made none; the live cap read 5 at 1 and 20 at 4 for a boar and 40 at 4 for a hen; six animals of each of the bear, Neck, Hatchling and Deathsquito bred into 18, 21, 13 and 15; a vanilla boar, then the bear, Neck, Hatchling and Deathsquito, each placed untamed 70 m from the player with one food item beside it, ate it and were tamed within 6 s (taming time cut to 6 s for the test); with
PassiveProductionon and a 30 s interval a boar dropped oneLeatherScrapsabout 30 s after its timer started (on the Release build too) and no meat or trophy, and the timer restarted after the animal went hungry (27 s old after 14 s of hunger, 9 s old 12 s after it was fed again);ListTameCandidateslisted 140 creatures; the existingConfinedReachtest still has a boar eating within about 2 s at 3. Closer than that the bear, Hatchling and Deathsquito stayed alerted to the player and were not tamed: the game only counts taming time while the animal is not alerted, as for a wolf. Not tested: a real creature from another mod (Neck stood in for one), soExtraTameablesmay not work for every creature; a dedicated server; other languages' food names.
1.1.0
- New setting
ConfinedReach(default 0, which changes nothing). For pens and towers where an animal sits in a tight cell beside the trough and never eats from it. In the game's own code the animal walks to the food along a path, the food sits inside the trough's collider, and in a small cell that path leaves the cell, so the animal stands still facing away from the trough. WithConfinedReachabove 0, an animal that many metres or closer, with nothing solid between it and the bowl, is offered food and treated as having arrived, and the game then turns it to the food and lets it eat. 3 suits a 2x1 or 2x2 cell. It is inBepInEx/config/cartur.feedingtrough.cfgand takes effect at once. - Tested with a boar in a 2x1 wall cell on the ground, on a floor 6 m up, and on a floor with the trough tilted 26 degrees: with the setting at 3 it ate within a second every time; with it at 0 it did not eat on the ground. Not tested on a dedicated server, or with real sloped roof pieces.
1.0.5
- Large animals, such as the horse from OdinHorse, are now offered food from the trough. Before, the trough's reachability check failed for them, so they were never offered food unless they were already within about 2 m.
1.0.4
- New icon in the Cartur's Mods style. The mod itself is unchanged from 1.0.3 (BepInEx still reports 1.0.3).
1.0.3
- In-game screenshots in the README. No code changes.
1.0.2
- The README is rewritten: a fuller description of what the mod does, every setting and default checked against the code, and image captions that match the pictures. No code changes.
1.0.1
- Multiplayer: animals eat from a trough another player owns. Before, an animal only ate if the same player owned both it and the trough, so animals could go hungry beside a full trough. A trough that someone has open is still left alone.
- Animals try every trough in range, nearest first, so an empty trough no longer hides a stocked one a few metres further away.
- Bait stays in the bowl after the area reloads.
- Fixed a possible error in the taming bar.
1.0.0
First release.
- A buildable Feeding Trough: hammer, Furniture, 10 wood at a workbench.
- Animals walk to it and eat from it, which feeds taming, breeding and upkeep.
- The bowl shows what is in it.
- Animals no longer pick the trough as something to walk over and smash.
- A taming bar under the health bar, and the time left in the hover text.
