32 lines
799 B
Lua
Raw Normal View History

2015-01-09 23:48:31 -05:00
minetest.register_node("womd:radioactive_air", {
2015-01-10 12:53:37 -05:00
tiles = {"radioactive_air.png"},
drawtype = "glasslike",
2015-01-09 23:48:31 -05:00
paramtype = "none",
walkable = false,
pointable = false,
diggable = false,
air_equivalent = true,
drop = "",
damage_per_second = 1,
groups = {not_in_creative_inventory=1},
2015-01-10 12:57:32 -05:00
})
minetest.register_abm({
nodenames = {"womd:radioactive_air"},
2015-01-10 14:38:19 -05:00
neighbors = {"air"},
2015-01-10 12:57:32 -05:00
interval = 10.0,
chance = 10,
action = function(pos, node, active_object_count, active_object_count_wider)
2015-01-10 14:38:19 -05:00
minetest.set_node(pos, {name = "air"})
2015-01-10 12:57:32 -05:00
end,
})
minetest.register_abm({
2015-01-10 14:36:21 -05:00
nodenames = {"air"},
2015-01-10 12:57:32 -05:00
neighbors = {"womd:radioactive_air"},
interval = 15.0,
chance = 10,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.set_node(pos, {name = "womd:radioactive_air"})
end,
2015-01-09 23:48:31 -05:00
})