Skip to content
Snippets Groups Projects
Commit e81a5427 authored by TenPlus1's avatar TenPlus1
Browse files

Water abm's affect river water also

parent 426a30bb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment