Abm to remove water and lava in Morlendor

master
NPXcoot 2016-11-08 23:21:32 +01:00
parent 649e2f7827
commit b950ae0cc4
1 changed files with 21 additions and 0 deletions

View File

@ -877,3 +877,24 @@ minetest.register_abm({
minetest.place_schematic({x=posarena.x, y=-30096, z=posarena.z-90}, minetest.get_modpath("nssb").."/schems/arena511.mts", "0", {}, true)
end
})
minetest.register_abm({
nodenames = {"default:lava_source"},
neighbors = {"nssb:morentir","nssb:morkemen", "nssb:morelentir", "nssb:mornen", "nssb:mornar","nssb:indistructible_morentir"},
interval = 1.0,
chance = 1,
action = function(pos, node)
minetest.set_node({x = pos.x, y = pos.y , z = pos.z}, {name = "air"})
end
})
minetest.register_abm({
nodenames = {"default:water_source"},
neighbors = {"nssb:morentir","nssb:morkemen", "nssb:morelentir", "nssb:mornen", "nssb:mornar","nssb:indistructible_morentir"},
interval = 1.0,
chance = 1,
action = function(pos, node)
minetest.set_node({x = pos.x, y = pos.y , z = pos.z}, {name = "air"})
end
})