Hunger Pangs
Don't forget to eat food again! Automatic eating, HUD notifications and now Automatic Health, Poison, Fire and Frost Mead consumption! Fully configurable.
模組介紹 作者原文
HungerPangs
Never let your food buffs silently expire again. HungerPangs watches your active food timers and automatically alerts and/or re-eats food from your inventory before it runs out — warns you when your supply is getting low — automatically drinks health meads when you take damage in combat — automatically drinks resist meads when a threatening enemy is nearby or environmental conditions demand it — and pauses food timers while you're at your workbench or on a boat.
This mod was inspired by Gaakrin's AutoEat.
Features
- Auto-Eat — Automatically consumes a matching food item from your inventory when a food buff is about to expire.
- Auto-eat notifications — Shows a HUD message each time a food item is automatically re-eaten.
- Expiry notifications — Shows a HUD message when a food item is nearing its expiry, so you can eat manually on cue if you prefer.
- Low supply warnings — Alerts you when your remaining stock of a food item drops to or below a configurable count.
- Auto Mead — Automatically drinks a health mead when your health drops below a configurable threshold. Optionally restricts this to combat only (triggered by enemy hits), and can filter out meads that would overheal your health cap.
- Auto Poison Resist Mead — Automatically drinks a poison resist mead when a poison-capable enemy is approaching you or within melee range.
- Auto Fire Resist Mead — Automatically drinks a fire resist mead when a fire-capable enemy is approaching you or within melee range.
- Auto Frost Resist Mead — Automatically drinks a frost resist mead when you are Freezing (Mountain biome environmental cold) or have taken a configurable number of frost damage hits within a time window.
- Pause Near Workbench — Pauses food expiry timers when you are within workbench range. Food effects (health and stamina regen) continue normally — only the countdown is paused.
- Pause On Boat — Pauses food expiry timers when you are on a boat. Food effects (health and stamina regen) continue normally — only the countdown is paused.
- Keep Food On Death (optional, off by default) — Preserves the food you have eaten when you die: you respawn with the same active food buffs and their remaining timers instead of losing all food on death.
- Scale With TimeControl — Scales food expiry timers by the TimeControl mod's day/night multiplier, so food lasts proportionally longer when days are longer (e.g. TimeControl at 4× → food lasts ~4× longer). Uses TimeControl's effective multiplier, so on a server it follows the shared clock. No effect if TimeControl isn't installed.
- Server-authoritative config — When installed on a multiplayer server, key settings are enforced on connected clients and locked in the config manager for non-admins. See Multiplayer.
- Fully configurable — Every feature can be independently toggled and tuned via the BepInEx config file.
How Valheim Food Timers Work
Understanding this helps you choose the right threshold values.
Every food item has a total duration (e.g. 20 or 30 minutes). As the timer counts down, the buff gradually weakens. At 50% of the duration remaining, the food starts blinking in the HUD — this is Valheim's signal that you can eat it again. You cannot re-eat food before that point, regardless of mod settings.
This means the useful tuning window is roughly 1–49% of a food's total duration. Both thresholds below are expressed as a percentage of total duration so they scale correctly across all food types automatically.
Configuration
Settings are written to BepInEx/config/drummercraig.hungerpangs.cfg on first launch and can be edited with any text editor or Configuration Manager. Numeric thresholds appear as sliders when using Configuration Manager.
General
| Setting | Default | Range | Description |
| --- | --- | --- | --- |
| 1. Mod Status | true | — | Master toggle. Disabling this stops all auto-eating, notifications, and workbench pausing. |
| 2. Auto-Eat | true | — | Automatically re-eat food before it expires. Whe
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: