Aedenthorn's Auto Feed mod, but with an option to restrict the container type(s) used and to allow feeding from containers only when breeding might occur. Lets tameable animals eat from nearby containers. Original mod found here: https://www.nexusmods.com/valheim/mods/985 or https://valheim.thunderstore.io/package/aedenthorn_nexus/AutoFeed.
BepInEx is a general purpose framework for Unity modding.
Permissions and credits
Credits and distribution permission
Other user's assetsSome assets in this file belong to other authors. You will need to seek permission from these authors before you can use their assets
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features without permission from or credit to me
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
If Aedenthorn wants to use my modified code to implement these changes in the original mod, a forked version of Aedenthorn's code can be found here: https://github.com/gizmorphium/ValheimMods-AutoFeed/tree/master/AutoFeed. If that happens, I'd happily remove this mod. I've also given Aedenthorn permission to edit this mod submission.
File credits
Thanks, of course, to Aedenthorn for including modification permission with the original mod and for providing the code on Github.
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 0.1.0
Added config option to restrict container types used for feeding. Added config option to log container names to help with getting names for restricting containers. Added option to restrict eating from containers to times when mate and animal limit breeding conditions are met.
With this mod installed, you can place a container near an animal pen to let your animals eat from the container.
I was inspired to add additional options to Aedenthorn's Auto Feed after installing Balrond-Astafaraios' Trough (now deprecated, but previously available here https://www.nexusmods.com/valheim/mods/1877 or https://valheim.thunderstore.io/package/CookieMilk/Food_Trough). I wanted only to use that container for feeding while safely allowing other chests to be near the animals for reserved feed storage.
This is modified based on the code provided by Aedenthorn at https://github.com/aedenthorn/ValheimMods/tree/master/AutoFeed.
You can set the following in addition to the config opinions in Aedenthorn's mod:
Types of containers to allow as feeders. Great for use with the Balrond Trough or when a modded container has a name that is incompatible with Aedenthorn's original mod.
Whether to log container names to the BepInEx LogOutput.log. This is useful for finding container names to allow but should normally be false as it will spam the log.
Whether animals should only eat if conditions are right for breeding. NOTE: This doesn't guarantee they will breed once they eat. Before an animal chooses a container to eat from, it checks for at least one potential partner and whether the limit on that type of animal hasn't been reached in the nearby vicinity (around the animal or the container). As animals move around, the game's breeding checks might later see too many animals in one area. This setting will, however, greatly reduce the use of feed containers when the animals can't breed.
For Aedenthorn's documentation, see the original mod at https://www.nexusmods.com/valheim/mods/985.