Alnerius12-FoodBagExtraFoodBridge icon

FoodBagExtraFoodBridge

Bridge for Food Bag and ExtraFoodSlot: lets Food Bag's auto eat use the 4th food slot added by ExtraFoodSlot, and sets Food Bag's Slots to 4 if it is at 3. Needs both mods.

Last updated 4 days ago
Total downloads 49
Total rating 0 
Categories AI Generated Client-side
Dependency string Alnerius12-FoodBagExtraFoodBridge-1.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 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.2350
nick008-ExtraFoodSlot-1.0.8 icon
nick008-ExtraFoodSlot

Adds a fourth active food slot to Valheim 1.0, including HUD icon, timer and background. Tested on Valheim 1.0.7. Requires only BepInEx.

Preferred version: 1.0.8
ValheimLiteni-Food_Bag-1.1.0 icon
ValheimLiteni-Food_Bag

A separate food bag in your inventory (AzuExtendedPlayerInventory or Equipment and Quick Slots): food-only slots, auto eat, quick eat key.

Preferred version: 1.1.0

README

FoodBag ExtraFood Bridge

A tiny bridge between Food Bag (ValheimLiteni) and ExtraFoodSlot (nick008).

The problem

ExtraFoodSlot raises the game's active food limit from 3 to 4, but Food Bag's auto eat only eats a new food while fewer than 3 foods are active. So even with 4 slots in the bag, the 4th food is never eaten.

What this mod does

  • It changes that built-in limit of 3 to 4 inside Food Bag's auto-eat check, at runtime (Harmony transpiler). With it, Food Bag's auto eat keeps all four active food slots filled.
  • If Food Bag's Slots setting is exactly 3 (its default), it changes it to 4. Any other value is left alone. You can turn this off in this mod's own config.

It does not include or modify any file of the other mods. It only needs them installed.

Requirements

  • Food_Bag 1.1.0 or newer
  • ExtraFoodSlot 1.0.8 or newer
  • One of the inventory mods Food Bag works with (AzuExtendedPlayerInventory or Equipment and Quick Slots)

Setup

  1. Install this mod with your mod manager (the requirements above are installed automatically, except the inventory mod you choose for Food Bag).
  2. Start the game once, then restart it. Food Bag creates its slots at startup, so the 4th bag slot only appears on the second launch after installing.
  3. In the BepInEx log you should see: Listo: FoodBag ahora come hasta 4 comidas activas. and, the first time, Slots de FoodBag estaba en 3 y ahora es 4.

Configuration

BepInEx/config/local.foodbag.extrafoodbridge.cfg

Section Setting Default What it does
General Set Food Bag slots to 4 true If Food Bag's Slots is exactly 3, change it to 4. Turn it off if you want to keep 3 bag slots.

If you set Food Bag's Slots to a different number yourself (in ValheimLiteni.FoodBag.cfg), this mod leaves it alone.

Compatibility

  • Client side only.
  • If a future Food Bag update changes the code or the setting this mod relies on, it skips that part and writes a warning to the BepInEx log instead of breaking anything.
  • May conflict with other mods that also change Food Bag's auto eat.

Check out my other mod

Using ZenUI? Try ExtraFood ZenUI Bridge. It makes ZenUI color the 4th food slot added by ExtraFoodSlot, just like the other three.

Credits

Food Bag by ValheimLiteni and ExtraFoodSlot by nick008 do all the real work; this is only the glue between them. This mod was written with AI assistance (Claude).