About No offline food spoil
From Vintage Story ModDBPrevent player inventory food from spoiling while the player is offline
When a player is disconnected from a server, all its food stored in its hotbar and backpacks (not the chests nor anything accessible from other players) no longer spoils. It also prevents items to progress any other timed transition, such as drying if it is a spoilable item.
Only works server-side, no need to install on client.
The 'recommended' version is totally safe to add/remove as it does not persist any custom data in the save files.
PLEASE do not use the 'tester' version on big servers, as it still has issues.
If, for some reason the 'recommended' version does not work, you can always try the 'tester' version.
The 'tester' version uses an alternative way to handle food spoiling. But because of the new algorithm, if you ever remove the mod, any offline player holding food in their inventory will have a pseudo infinite spoil duration as a side-effect.
Configuration
The mod can be configured by tweaking a few parameters in the VintagestoryData/ModConfig folder (OfflineFoodNoSpoil.json).
The configuration is Hot-Reloaded, meaning that a change to the configuration file won't require a server restart. It will work out of the box.
<table style="border-collapse: collapse; width: 100%; height: 89px;" border="1"> <tbody> <tr style="height: 18px;"> <td style="width: 50%; height: 18px;">Field</td> <td style="width: 50%; height: 18px;">Description</td> </tr> <tr style="height: 18px;"> <td style="width: 50%; height: 18px;">EnableMod</td> <td style="width: 50%; height: 18px;"> Set to true to enable the mod. If set to false, the mod will do nothing.
Default: true.
UseLogs</td> <td style="width: 50%; height: 17px;"> Enable or disable logging in the terminal. Used for debugging.
Default: false.
FoodSpoilMultiplier</td> <td style="width: 50%; height: 18px;"> A value between 0 and 1. Custom multiplier for the elapsed offline time.
0 means that there will be 0% of the elapsed time used for the spoil rate. Basically, the food spoil rate will be entirely stopped.
A value of 1 means that there will be 100% of the elapsed time used for the spoil time, basically disabling the mod and no spoil rate will be slowed at all.
Default: 0.0.
MaxAllowedSkippedHours</td> <td style="width: 50%; height: 18px;"> (Optional) A final max amount of hours allowed of skipping. If the skipped time is bigger than this value, it will be clamped.
Default: null.
Time computation
The skipped time is computed this way, with a offline duration of 48 hours :
- First get the elapsed time while offline. Here 48 hours.
- Apply the multiplier. Here let's say we have a multipler of
0.25. That means 25% of the elapsed time will be applied on the food.
48 hours * (1 - 0.25) = 36 skipped hours - Then if
MaxAllowedSkippedHoursis defined, we use it to clamp the value. Here the value is 30 hours.
Since 36 is bigger than 30, we get 30 skipped hours. Otherwise, we would get 36 hours.
Each perishable item in the inventory will skip 30 hours before applying the remaining time : 48 - 30 = 18 actual hours applied on the perishable food.
Highlights
From source dataGame versions
Built for Vintage Story 1.18.14.
Footprint
Rated a light load on a server.
No offline food spoil on Nxeon
From our catalogue- One-click install
- Supported on Nxeon Vintage Story servers. We download it from Vintage Story ModDB, place it, and restart the server.
- Server side
- Required on the server
- Server load
- light
- Smallest plan we suggest
- Vintage Story — 1 GB (1 GB RAM). This follows our own load rating above, not a benchmark.
Run No offline food spoil on a Vintage Story server
Pick a server or deploy a new one above; it is installed in one click.
What kind of mod it is
From the catalogWeapons, items & crafting
New weapons, gear, items and the recipes to make them.
Runs on your server
From source side supportVintage Story ModDB lists No offline food spoil as required on the server. Check its Vintage Story ModDB page to see whether players need it too.
Compatibility
- Game
- Vintage Story
- Runs on
- Serverrequired on the server
- Game versions
- 1.18.14
Verified at the source
- ✓Vintage Story ModDBOfficial listing, checked 2026-09-24Open ↗
- ✓AuthorWiltoga, as published on Vintage Story ModDB
- ✓LicenseNot published by the sourceFree














