Skip to content

Commit

Permalink
River water renewability: Add comments to nodes.lua and bucket mod
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Nov 11, 2017
1 parent 91997d9 commit 3ae382c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mods/bucket/init.lua
Expand Up @@ -188,6 +188,12 @@ bucket.register_liquid(
{water_bucket = 1}
)

-- River water source is 'liquid_renewable = false' to avoid horizontal spread
-- of water sources in sloping rivers that can cause water to overflow
-- riverbanks and cause floods.
-- River water source is instead made renewable by the 'force renew' option
-- used here.

bucket.register_liquid(
"default:river_water_source",
"default:river_water_flowing",
Expand Down
4 changes: 4 additions & 0 deletions mods/default/nodes.lua
Expand Up @@ -1656,6 +1656,10 @@ minetest.register_node("default:river_water_source", {
liquid_alternative_flowing = "default:river_water_flowing",
liquid_alternative_source = "default:river_water_source",
liquid_viscosity = 1,
-- Not renewable to avoid horizontal spread of water sources in sloping
-- rivers that can cause water to overflow riverbanks and cause floods.
-- River water source is instead made renewable by the 'force renew'
-- option used in the 'bucket' mod by the river water bucket.
liquid_renewable = false,
liquid_range = 2,
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
Expand Down

0 comments on commit 3ae382c

Please sign in to comment.