Water

If you liked this item, please rate it up on Steam Workshop page.

Author: lukeh_ro

Last revision: 16 Mar, 2025 at 10:16 UTC

File size: 4.23 MB

On Steam Workshop

Description:

Adds water for drinking and needed in some recipes (i.e. soups) and, as I plan to, for washing.

Initially a hand pump can be built and afterwards, when constructions become available, you could build sinks inside.

Water added by this mod will be used in my other mods like Hygiene, Toilets, Animals Drink.

Note for modders:
If you want your recipes to use water or your buildings to produce water if and only if this mod is enabled, add the following snippet to a script in your mod (either of the lines inside of the "if", multiple times if needed, replacing the "RecipeId" and "BuildingId" with the ones from your mod)…
function OnMsg:ModsReloaded()
if table.find(ModsLoaded, "id", "LH_Water") then
AddWaterToRecipe("RecipeId") — will add one unit of water for each unit of output
AddWaterToRecipe("RecipeId", 2 * const.ResourceScale) — custom amount, 2 in this example
AppendClass.BuildingId = { __parents = {"WaterSourceComponent"} } — for buildings
end
end

Buy Me a Coffee[buymeacoffee.com]
Paypal Support[paypal.me]


Version: 1.18-018