Skip to content
Permalink
Browse files

River water renewability: Add comments to nodes.lua and bucket mod

  • Loading branch information...
paramat committed Nov 8, 2017
1 parent 91997d9 commit 3ae382c91302b87c2deac2d5284a7e04cf1878c9
Showing with 10 additions and 0 deletions.
  1. +6 −0 mods/bucket/init.lua
  2. +4 −0 mods/default/nodes.lua
@@ -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",
@@ -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},

0 comments on commit 3ae382c

Please sign in to comment.
You can’t perform that action at this time.