]> git.lizzy.rs Git - Crafter.git/blob - mods/main/lava_cooling.lua
Add in better player water flow
[Crafter.git] / mods / main / lava_cooling.lua
1 minetest.register_abm({
2         label = "Lava cooling",
3         nodenames = {"main:lava"},
4         neighbors = {"main:water", "main:waterflow"},
5         interval = 1.0,
6         chance = 5.0,
7         catch_up = false,
8         action = function(pos)
9                 minetest.set_node(pos,{name="nether:obsidian"})
10         end,
11 })
12 minetest.register_abm({
13         label = "Lava cooling",
14         nodenames = {"main:lavaflow"},
15         neighbors = {"main:water", "main:waterflow"},
16         interval = 1.0,
17         chance = 5.0,
18         catch_up = false,
19         action = function(pos)
20                 minetest.set_node(pos,{name="main:cobble"})
21         end,
22 })