You are viewing a potentially older version of this package. View all versions.
vanbushi-Auto_Feeder-0.9.4 icon

Auto Feeder

Tamed animals eat from nearby chests. Works with boars, wolves, lox, hens and asksvin. Updated for Valheim 1.0.

Date uploaded 2 weeks ago
Version 0.9.4
Download link vanbushi-Auto_Feeder-0.9.4.zip
Downloads 595
Dependency string vanbushi-Auto_Feeder-0.9.4

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 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.2351

README

Auto Feeder

Tamed animals that are hungry walk to a nearby chest and eat from it, so you don't have to drop food on the floor.

Works with every tameable animal: boars, wolves, lox, hens and asksvin. It also works with creatures made tameable by other mods, as long as they eat items the normal way.

Maintained by vanbushi. Originally created by aedenthorn (Auto Feed).

How it works

  • A hungry tamed animal looks for a chest within 10 m (ContainerRange) that holds food it eats.
  • It walks over, faces the chest and eats one item, the same as eating from the ground.
  • Food on the ground is still eaten first.

Install

  1. Install BepInExPack Valheim.
  2. Put AutoFeed.dll in Valheim/BepInEx/plugins/.
  3. Run the game once to create BepInEx/config/vanbushi.AutoFeed.cfg.

Multiplayer: install on the server and every player's PC.

Settings

Setting Default What it does
ContainerRange 10 How far (metres) animals look for a chest.
RequireMove true Animals walk to the chest. Off = they eat from it from where they stand.
MoveProximity 2 How close they get. The animal's own size is added on top.
ContainerNameFilter piece_chest,Container Only chests whose names start with these.
FeedDisallowTypes (empty) Item prefab names animals must never eat, comma-separated.
AnimalDisallowTypes (empty) Creature prefab names that should not use chests, comma-separated (e.g. Wolf).
RequireOnlyFood false Only use chests that hold nothing but that animal's food.
ToggleKey (empty) Key to turn the feeding on/off.
IsDebug false Writes what each animal is doing to the BepInEx log.

Reload the config in game: press F5 and type autofeed reset.

What each animal eats

  • Boar: blueberries, carrots, onions, raspberries, mushrooms, turnips
  • Wolf: raw meats, fish, sausages
  • Lox: barley, cloudberries, flax
  • Hen: carrot, turnip, onion, beech and birch seeds, barley, dandelion
  • Asksvin: smoke puff, vineberry cluster, fiddlehead

Upgrading from aedenthorn's Auto Feed

Delete the old BepInEx/config/aedenthorn.AutoFeed.cfg. This version uses vanbushi.AutoFeed.cfg.

CHANGELOG

Changelog

0.9.4

  • Hens, lox, asksvin and other restless or large animals now eat from containers, not just boars.
    • The animal's wandering or following no longer overrides the walk to the chest in the same frame.
    • How close an animal must get now includes its own size, so big animals like lox can reach the chest.
    • Animals no longer have their pathfinding type forced to "humanoid size", which could get lox and others stuck.
  • If an animal can't reach a chest within 20 seconds, it tries other chests for a while instead of standing still.
  • Containers are found from any of their colliders, so more chest types are picked up.
  • Ignores chests on another floor (more than 3 m higher or lower) and chests someone has open.
  • Only takes food from chests this game owns, so the removed item is saved properly in multiplayer.
  • Animals made tameable by other mods no longer cause errors if they aren't the usual creature type.
  • Config file and settings are unchanged; existing vanbushi.AutoFeed.cfg files keep working.

0.9.3

  • Updated for Valheim 1.0.20 (GUID vanbushi.AutoFeed).
  • ContainerNameFilter default fixed to "piece_chest,Container".
  • Spaces around commas in the comma-separated settings are ignored.