McNoHungryPets
Tamed creatures never get hungry. Configurable: tamed only, or just stretch how long they stay fed after eating.
模組介紹 作者原文
McNoHungryPets
Tamed creatures never get hungry in Valheim.
The problem
In vanilla the "fed" state is short — between 30 and 600 seconds depending on the
creature. After that the animal is hungry, stops regenerating health and stops breeding,
and you have to refill the pen by hand or with a feeder mod.
What this mod does
It answers "not hungry" for the target creatures, instead of touching inventories or
adding structures. No food is consumed and no chest is needed.
Configuration
BepInEx/config/joaorodrigues.valheim.mcnohungrypets.cfg
| Option | Default | What it does |
|---|---|---|
| Enabled | true | Enables the mod. With false everything returns to vanilla |
| TamedOnly | true | Only already tamed creatures stop getting hungry. Taming still requires feeding, like vanilla. With false, taming also progresses without feeding |
| OverrideFedDuration | false | Conservative alternative: keeps the hunger mechanic and only stretches how long a creature stays fed |
| FedDurationSeconds | 86400 | Seconds of satiety when OverrideFedDuration is true. 86400 = one real day |
The two modes are exclusive: with OverrideFedDuration = true, hunger removal is off and
the stretched duration applies instead.
Side effect you should know about
Breeding in Valheim requires the creature to not be hungry. With hunger removed,
animals accumulate love points continuously and breed much faster than in vanilla.
The game does have its own brake — Procreation.Procreate() counts nearby adults and
offspring and stops once m_maxCreatures is reached for that prefab in range — so it is
not unbounded. But pens fill to that ceiling far quicker. Keep pens small, collect the
offspring, or use OverrideFedDuration with a moderate value.
Multiplayer
Every player who wants the effect needs the mod. Installing it only on a dedicated
server is not enough: hunger is also evaluated on the client that owns the creature,
and in Valheim that is usually the nearest player, not the server. If your case is a
dedicated server with vanilla clients, look for a server-side-only solution.
Compatibility
- Valheim 1.0.12 (network 40)
- BepInEx 5.4.2350
- Works alongside auto-feeding mods, though they become pointless — the animals never
get hungry to begin with.
How it works inside
Tameable.IsHungry() compares the last feeding timestamp, stored in the ZDO, against
m_fedDuration. The mod uses two Harmony postfixes: one on IsHungry returning false
for the target creatures, and one on Tameable.Awake for the stretched duration mode.
License
MIT.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: