summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-07-15 17:32:19 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2015-07-15 17:32:19 +0100
commite81a542706809ac2fc44904d788184bc1e7370b7 (patch)
tree5ba0e7530850447b1262d5f9caacf3d3205bb633
parent426a30bb404ad1d85d8472769b71a4603ff48add (diff)
Water abm's affect river water also
-rw-r--r--water.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/water.lua b/water.lua
index 53b7b8b..10312e7 100644
--- a/water.lua
+++ b/water.lua
@@ -42,7 +42,7 @@ minetest.register_craft({
-- Over time Cobble placed in water changes to Mossy Cobble
minetest.register_abm({
nodenames = {"default:cobble"},
- neighbors={"default:water_source"},
+ neighbors={"group:water"},
interval = 30,
chance = 10,
action = function(pos, node)
@@ -56,14 +56,14 @@ minetest.register_abm({
"ethereal:crystal_spike", "default:snow", "default:snowblock",
"ethereal:snowbrick"
},
- neighbors = {"default:water_source"},
+ neighbors = {"default:water_source", "default:river_water_source"},
interval = 15,
chance = 2,
action = function(pos, node)
local water = minetest.find_nodes_in_area(
{x = pos.x - 1, y = pos.y - 1, z = pos.z - 1},
{x = pos.x + 1, y = pos.y + 1, z = pos.z + 1},
- "default:water_source")
+ {"default:water_source", "default:river_water_source"})
if water then
minetest.set_node(water[1], {name = "default:ice"})
end