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.
TroughFoodCompatibility
CoreWoodExtras trough compatibility: accept registered animal foods, feed from mixed inventories, and optionally add crops to selected diets.
| Date uploaded | 2 weeks ago |
| Version | 0.1.1 |
| Download link | Vercadi-TroughFoodCompatibility-0.1.1.zip |
| Downloads | 33 |
| Dependency string | Vercadi-TroughFoodCompatibility-0.1.1 |
This mod requires the following mods to function
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.2350shudnal-ConditionalConfigSync
Shared config synchronization and server policy library for Valheim mods. Installed as a dependency and compatible with Jotunn and ServerSync.
Preferred version: 1.0.9MagicMike-CoreWoodExtras
Adds a large variety of HD core wood build pieces, core wood furniture, greenhouse pieces, market stalls and more!... Hand crafted, Not AI built slop!
Preferred version: 2.3.2README
TROUGH FOOD COMPATIBILITY
ONE TROUGH. DIFFERENT APPETITES.
Stock the feed. Let each animal choose its meal.
Trough Food Compatibility expands the CoreWoodExtras feeding trough's accepted items from its fixed vegetable list to foods registered in tameable creatures' diets. It also lets animals select their own valid food from a mixed inventory, instead of rejecting that inventory because another food belongs to a different species.
Compatibility / v0.1.1
Requires CoreWoodExtras 2.2.7 or 2.2.8, BepInExPack Valheim 5.4.2350 and ConditionalConfigSync 1.0.9. Built against Valheim 1.0.15. Install on every client and the dedicated server with matching versions. This release checks the reviewed CoreWoodExtras DLL exactly; a changed binary leaves the helper inactive until reviewed.
SUPPORT ME ON KO-FI
If this makes your settlement a little easier to live in, buy me a coffee. Your support helps me spend more time on small improvements and compatibility fixes for modded games. A tip is optional and appreciated. Vercadi
FEED THE HERD / WHAT CHANGES
- Discovers food from registered tameable creature prefabs and active creatures, including diets supplied by taming mods.
- Adds those item prefab names to CoreWoodExtras' trough whitelist. Meat, neck tails and modded crops become eligible when an installed creature actually eats them.
- Allows mixed-food troughs. Each animal still needs an item from its own diet; a boar does not start eating meat simply because meat is stored beside berries.
- Preserves CoreWoodExtras' feeding range, hunger handling, per-item selection, network ownership checks and one-item consumption path.
- Blocks the trough's automatic ground pickup by default, so the larger whitelist does not start collecting valuable dropped meals or materials.
The helper does not replace CoreWoodExtras, add a new trough, increase its capacity or alter taming times. The new raw-meat equivalents are enabled by default: animals eating vanilla boar meat also accept BoneAppetit Raw Pork (rk_pork); animals eating vanilla hare meat also accept Odin's raw hare meat (BOH_RawHare_Meat). Herbivores and cooked-meat-only diets do not gain meat. Missing items are ignored. Existing troughs can use the fix; a new world is not required.
STOCK THE TROUGH / INSTALLATION
- Close Valheim and stop the dedicated server normally.
- Install TroughFoodCompatibility and the dependency versions above in all player profiles and on the server.
- Place a CoreWoodExtras feeding trough within the mod's configured feeding range. Stock food suitable for the nearby animals.
Manual installation: copy plugins/TroughFoodCompatibility from this ZIP into BepInEx/plugins after installing dependencies.
Coming from the local test package? Remove that local entry with the game closed, then install the published package. Keep one TroughFoodCompatibility.dll and retain your config.
Removal: empty added foods from troughs first, close the game and server, and remove this helper everywhere. Original whitelist and mixed-food behavior return. Food stored in the world is not deleted by this helper, but the original restriction can prevent putting it back.
YOUR SETTINGS
The first launch creates BepInEx/config/vercadi.TroughFoodCompatibility.cfg.
[General]
Enabled = true
Lock server settings = true
Allow trough auto collect = false
[Optional diets]
Creature prefabs = Deer,Boar,Sheep_TW
Extra food prefabs =
Raw meat equivalents = true
Extra food prefabs is empty by default. To opt selected creatures into extra crops, list installed item prefab names separated by commas. Creature prefabs selects the species receiving those additions. Existing diet entries remain. Missing items are ignored; names are case-sensitive. This option is a deliberate diet change, not automatic nutritional classification.
For example, if your pack provides BCA_Tomato, adding that name makes the selected deer, boars and Darkhorn accept that tomato. It does not make other species eat it.
Automatic ground pickup requires both Allow trough auto collect = true here and CoreWoodExtras' own auto-collect option enabled. Keep it off unless you want foods dropped near the trough collected automatically.
Edit the server config while stopped and restart all participants after diet changes. Server settings override client values during the session. The helper does not provide a second range setting; use CoreWoodExtras' feeding and storage settings.
FIELD NOTES / TROUBLESHOOTING
Look for ACTIVE: reviewed CoreWoodExtras 2.2.7 / 2.2.8 trough food discovery and Trough food discovery: in BepInEx/LogOutput.log. These confirm registration and discovery, not successful feeding.
An item will not enter the trough: confirm its creature or food prefab has loaded and its current diet contains that item. Creature names and item names displayed in the UI can differ from prefab names. The helper does not treat everything called meat or vegetable as food.
An animal will not eat: check its hunger, diet and CoreWoodExtras range. Alerts and normal feeding conditions still apply. One trough may contain several species' foods, but each animal needs a matching item.
After updating CoreWoodExtras: INACTIVE: trough compatibility was not applied means the reviewed binary or methods no longer match. Original behavior continues. Do not assume the helper is working merely because it appears in the mod list.
Validation: 40 offline food-policy and reviewed CoreWoodExtras contract checks passed. The maintainer reported successful in-game trough tests on 23 September 2026 with CoreWoodExtras 2.2.8 and Valheim 1.0.15 on a modded dedicated server. Logs confirm client/server registration, config synchronization and discovery of 43 eligible foods in that modpack. Food counts depend on installed creatures and settings; other mod combinations and every multiplayer ownership transition are not exhaustively tested.
CREDITS
Created by Vercadi as an independent compatibility add-on. Thanks to MagicMike for CoreWoodExtras and shudnal for ConditionalConfigSync. Their binaries and game assemblies are not included.
Original code and package icon use the included MIT license. Development used AI assistance. The linked Ko-fi button is Ko-fi's brand artwork.
Enjoying my work? Buy me a coffee on Ko-fi. A useful bug report helps too.
CHANGELOG
Changelog
0.1.6
- Support CoreWoodExtras 2.3.2 alongside the previously reviewed versions.
- Keep native mixed-food feeding, optional diets, closed-container safeguards and collection controls unchanged.
0.1.5
- Added CoreWoodExtras 2.3.1 support, retaining its native mixed-food feeding and handling of open troughs.
- Preserved optional animal diets and automatic collection settings.
0.1.4
- Adds support for CoreWoodExtras 2.3.0 while retaining its native mixed-food feeding and our optional animal diets.
0.1.3
- Added CoreWoodExtras 2.2.9 support and used its built-in mixed-food feeding.
- Kept optional diets, detection of foods added by taming mods and the automatic ground-collection setting.
- Retained support for CoreWoodExtras 2.2.7 and 2.2.8.
0.1.2
- Added separate options for wolves eating hare meat, raw-fish equivalents, ocean-fish fallback diets and adult hens eating additional seeds.
- Made each new option server controlled and off by default.
- Retained mixed-food feeding and busy-container checks; automatic ground collection remained opt-in.
0.1.1
- Added CoreWoodExtras 2.2.8 support while preserving its busy-container and owner-only collection checks. Version 2.2.7 remained supported.
- Added the server-controlled
Raw meat equivalentsoption, enabled by default. BoneAppetit's raw pork follows boar-meat diets, and Odin's Hares raw hare meat follows vanilla hare-meat diets. - Allowed these equivalents in troughs and in the diets of qualifying animals.
- Detected diet changes made by taming mods after animals spawned.
0.1.0
- Initial release with registered animal foods and mixed-food trough feeding.
