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

This commit is contained in:
paramat 2017-11-08 12:44:56 +00:00 committed by paramat
parent 91997d9342
commit 3ae382c913
2 changed files with 10 additions and 0 deletions

View File

@ -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",

View File

@ -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},