Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
AutoFeed
This mod will automatically feed tameable creatures in the game with food from nearby chests.
| Date uploaded | 2 weeks ago |
| Version | 1.0.2 |
| Download link | Narolith-AutoFeed-1.0.2.zip |
| Downloads | 2302 |
| Dependency string | Narolith-AutoFeed-1.0.2 |
This mod requires the following mods to function
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.20.1README
Auto Feed
Auto Feed is a Valheim mod that automatically feeds tameable creatures from nearby chests. No more dropping food on the ground — animals feed themselves as long as a chest with the right food is in range.
Features
- Automatic Feeding: Tameable creatures within range of a chest containing their food will be fed automatically.
- Configurable Range: Set the radius creatures will search for containers.
- Chest Filtering: Optionally restrict feeding to specific chest types by name prefix.
- Server-side: Install on the server only — clients do not need the mod.
Installation
- Install BepInEx on your dedicated server.
- Place
Narolith.AutoFeed.dllinBepInEx/plugins/on the server. - Clients do not need to install anything.
Configuration
Configuration is generated at BepInEx/config/Narolith.AutoFeed.cfg on first run.
| Parameter | Default | Description |
|---|---|---|
| Container Range | 10 |
Radius (units) in which creatures search for food containers. |
| Container Cache TTL | 5 |
Seconds before the nearby-container list is refreshed for each animal. |
| Chest Prefix | piece_chest |
Only containers whose name starts with this prefix are eligible. Leave empty to allow all containers. |
| Enabled | true |
Enable or disable the mod. |
Support
If you encounter any issues or have suggestions, open an issue on the GitHub repository.
CHANGELOG
1.0.2
- Documentation: Incorrect tags on the mod in Thunderstore showing server-side when this is a client and server required mod as of 1.0.0
1.0.1
- Performance: container scan results are now cached per animal (configurable TTL, default 5s), eliminating the full
Piece.s_allPiecesscan on every AI tick - Performance: distance calculations in container sorting now use
sqrMagnitudeinstead ofVector3.Distance, removing redundant square root operations - Performance: consumable lookup structure is now built once per feed attempt instead of once per container scanned, reducing GC pressure
- Fixed:
MissingReferenceExceptionwhen a cached container is destroyed during its TTL window - Added
Container Cache TTLconfig option (default5)
1.0.0
- Mod is now client and server side — all connected clients must have the mod installed
- Fixed feeding not working on dedicated servers: creature AI now runs on the ZDO owner (client or server) rather than assuming server-only execution
- Container discovery now uses Valheim's piece registry instead of physics queries, fixing containers not being found on clients
- Fixed performance issue: container queries now run at most once every 5 seconds per animal instead of every AI tick
0.3.2
- Fixed animals not feeding from chests — AutoFeed.Core.dll was missing from the Thunderstore package; FeedingLogic is now compiled directly into the main DLL so only one file needs to be shipped
0.3.1
- Updated README with server-side installation instructions and configuration table
0.3.0
- Mod is now server-side only — install on the server, clients no longer need it
- Feeding logic now only executes on the server, preventing double-feeding in multiplayer
0.2.5
- Fixed plugin build glob excluding sibling projects (AutoFeed.Core, AutoFeed.Tests)
- Removed plugin build step from release workflow (requires Valheim game DLLs unavailable in CI)
- Added
Scripts/package.shto build and zip the Thunderstore package locally - Bumped GitHub Actions to Node.js 24
0.2.4
- Replaced prebuild PowerShell manifest sync script with a release workflow
- Added automated CI tests via GitHub Actions
- Added branch protection requiring tests to pass before merging to main
0.2.3
- Added missing Thunderstore dependency to Jotunn
- Added manifest version script to avoid mismatch versions
0.2.2
- Fixed project version mismatch
0.2.1
- Removed unnecessary async delay in FeedAnimal
- Codebase improvements
0.2.0
- Changed targeted framework
- Added Jotunn dependency
- Added requirement Client/Server to have latest Minor version installed
0.1.0
- Added Jotunn for reference and assembly handling
- Code readability updates
- Added more details to README
- Increased default range from 5 to 10
- Rewrote global feeding delay logic
- Removed ownership check
0.0.2
- Updated GitHub link