Skip to content
Permalink
Browse files
Add lavacooling
  • Loading branch information
PilzAdam committed Mar 9, 2013
1 parent 90aaa1f commit 0d924e7e4dfe5f1f4e9aa822168e03ae61aaac6a
Showing 1 changed file with 28 additions and 0 deletions.
@@ -1736,4 +1736,32 @@ function on_punchnode(p, node)
end
minetest.register_on_punchnode(on_punchnode)

--
-- Lavacooling
--

default.cool_lava_source = function(pos)
minetest.env:set_node(pos, {name="default:stone"})
end

default.cool_lava_flowing = function(pos)
minetest.env:set_node(pos, {name="default:cobble"})
end

minetest.register_abm({
nodenames = {"default:lava_flowing"},
neighbors = {"group:water"},
interval = 1,
chance = 1,
action = default.cool_lava_flowing,
})

minetest.register_abm({
nodenames = {"default:lava_source"},
neighbors = {"group:water"},
interval = 1,
chance = 1,
action = default.cool_lava_source,
})

-- END

1 comment on commit 0d924e7

@Jordach
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either way it's still making cobble.

Please sign in to comment.