FoodKnowledge

版本 v1.0.3·更新於 2026-10-11

Easily extend Valheims cooking with YAML. Supports food buffs and custom icons. Server-synced and locked in multiplayer.

模組介紹 作者原文

Description

Food Knowledge adds new foods and recipes through YAML, using Valheim's native inventory and crafting menus. Customize food stats, healing, temporary skill bonuses, models, icons and crafting requirements.

During online play, food definitions are synced from the server. Icons sync once when joining unless the server enables Live Reload; tooltip visibility stays local.

Overview

| Feature | Description |

| --- | --- |

| New food recipes | Define new items without changing existing vanilla foods or recipes. |

| Native crafting | Use inventory crafting or one or more specified crafting stations, with ingredient discovery and station-level requirements. |

| Food customization | Set health, stamina, eitr, healing, duration, weight, stack size and crafting output. |

| Temporary skill bonuses | Add vanilla skill levels for the full food duration, including foods with no health, stamina or eitr. |

| Buff display | Modifier foods show an icon and timer, with automatic or custom text in Active effects. |

| Models and icons | Choose an existing item's 3D model and add a matching PNG icon; missing assets use boar meat. |

| Multiplayer | The server controls food definitions and icon synchronization; matching versions are required. |

Configuration and values

Edit BepInEx/config/dannanboi.foodknowledge.cfg. Food definitions are stored separately in BepInEx/config/FoodKnowledge. Offline play uses local files; multiplayer uses the server's definitions and icons without overwriting the client's files.

| Section / option | Default | Meaning |

| --- | --- | --- |

| [General] Enabled | true | Local startup switch. Changing it requires restarting the game or server. |

| [Settings] Live Reload | false | Server-controlled live synchronization of PNG additions, replacements and deletions. YAML updates always synchronize independently. |

| [UI] Show skill bonuses | true | Show temporary skill bonuses in item tooltips. Local and editable during multiplayer. |

Food item YAML

All.yaml and.yml files directly inside BepInEx/config/FoodKnowledge/ are loaded together. No recipes are enabled by default. Add a flat list to foods.yaml, or copy the entries from Examples/foods.example.yaml into it, replacing the empty. Examples are inactive while they remain outside the config folder.

  • itemName: dbfk_PerchMeal

displayName: "Perch meal"

description: "A filling meal: perch and blueberries. Grants temporary swimming knowledge."

useModel: FishCooked

craftingStation: piece_cauldron

stationLevel: 1

hpGain: 45

hpPerTick: 2

staminaGain: 15

eitrGain: 0

modifierGain: jump

modifierValues: 100

buffText: ""

stackSize: 20

weightPerUnit: 0.1

durationMinutes: 20

amountProduced: 2

ingredientList: Fish1[1],Blueberries[1]

Use console spawn names for items, ingredients, models and stations. Prefab names and field names are case-sensitive. Fish1 is perch, Blueberries is blueberries and FishCooked is cooked fish.

| Field | Meaning | Missing/empty value |

| --- | --- | --- |

| itemName | New item's console prefab name; must not match an existing prefab. | Required. |

| displayName | Title in inventory and crafting menus. | Use itemName. |

| description | Item tooltip description. | Empty description. |

| useModel | Existing item supplying the 3D appearance and physical model setup; food stats and recipes are independent. | Boar meat (RawMeat). Invalid or unavailable models also use this fallback. |

| craftingStation | Comma-separated crafting-station prefab names. | Inventory crafting only. |

| stationLevel | Positive whole-number minimum level for every listed station. | 1; unused without a station. |

| hpGain | Maximum-health contribution when eaten. | 0. |

| hpPerTick | HP restored per normal 10-second healing tick, before vanilla regeneration modifiers. | 2 with positive hpGain, otherwise 0. |

| staminaGain | Maximum-stamina contribution when eaten. | 0. |

| eitrGain | Maximum-eitr contribution when eaten. | 0. |

| modifierGain | Comma-sep

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

dannanboi-ModifiersFramework

檔案與校驗

檔案名稱
FoodKnowledge-1.0.3.zip
檔案大小
195.2 KiB