You are viewing a potentially older version of this package. View all versions.
larsbs-FoodDuration-1.1.1 icon

FoodDuration

Configure each food duration individually. Defaults preserve original durations except 20-minute foods become 25 minutes. No other food properties changed.

Date uploaded a week ago
Version 1.1.1
Download link larsbs-FoodDuration-1.1.1.zip
Downloads 77
Dependency string larsbs-FoodDuration-1.1.1

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 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.2360

README

Food Duration

Choose how long each food lasts, one food at a time.

  • By default, foods that last exactly 20 minutes now last 25 minutes.
  • All other foods keep their original duration until you change them.
  • Health, stamina, eitr and healing values are not changed.
  • Foods added by other mods get a setting too.
  • Requires BepInEx 5; Jotunn is not required.

Install

Install through your Valheim mod manager, then launch the game modded.

For manual installation, install BepInEx 5 for Valheim, then copy BepInEx/plugins/FoodDuration/FoodDuration.dll from this package into the matching folder in your game or active mod-manager profile. Restart the game.

Configure

Launch to the main menu once so the settings are created, then exit. Open BepInEx/config/local.valheim.foodduration.cfg, or use your mod manager's config editor. Each food has an entry under [FoodDurations], using its internal item name, with a value in seconds:

[FoodDurations]
CookedMeat = 1500
Raspberry = 600

Restart the game after making changes. Non-positive or invalid values fall back to that food's default. Delete an entry while the game is closed to get its default back on the next launch.

Some uncooked ingredients also appear in the list because the game gives them food values. Those entries can be ignored.

The old global DurationSeconds setting from 1.0.0 is ignored.

How it behaves

Food stats fade and food can be eaten again at half duration just as in the unmodified game, relative to each food's new duration. Food already active when you change a setting keeps its remaining time, so eat fresh food to see a change.

Multiplayer

Durations apply only to players who install the mod, and each player uses their own settings. Nothing is needed on the server, and settings are not synchronized.

Compatibility

Another mod that changes food durations can conflict. Valheim Plus's foodDurationMultiplier setting applies on top of these durations when food is eaten, so leave it at 0 when using this mod.

Uninstall

Exit the game and remove the mod. Saves are not changed; food that is active at the time keeps its remaining time until it runs out or is replaced.

License

MIT. See the included LICENSE file. This is an unofficial Valheim mod and is not affiliated with Iron Gate.

CHANGELOG

Changelog

1.1.1

  • A food whose internal name cannot be used as a config key is now skipped with a warning instead of interrupting game startup.
  • Simplified internal duration handling. Settings and durations work the same.
  • Removed local build information from the DLL.
  • Settings are created at the main menu; updated the instructions to match.

1.1.0

  • First Thunderstore release.
  • Individual duration settings for each food.
  • Default 20-minute foods to 25 minutes; preserve other durations.
  • Ignore the previous global duration setting.

1.0.0

  • Initial source-only/manual release with one global duration setting.