made radioactive air decay

This commit is contained in:
Yaman 2015-01-10 15:03:20 -05:00
parent ec4fa8e538
commit 518c00064a

View File

@ -14,7 +14,7 @@ minetest.register_node("womd:radioactive_air", {
minetest.register_abm({ minetest.register_abm({
nodenames = {"womd:radioactive_air"}, nodenames = {"womd:radioactive_air"},
neighbors = {"air"}, neighbors = {"air"},
interval = 10.0, interval = 30.0,
chance = 10, chance = 10,
action = function(pos, node, active_object_count, active_object_count_wider) action = function(pos, node, active_object_count, active_object_count_wider)
minetest.set_node(pos, {name = "air"}) minetest.set_node(pos, {name = "air"})
@ -24,8 +24,8 @@ minetest.register_abm({
minetest.register_abm({ minetest.register_abm({
nodenames = {"air"}, nodenames = {"air"},
neighbors = {"womd:radioactive_air"}, neighbors = {"womd:radioactive_air"},
interval = 15.0, interval = 30.0,
chance = 10, chance = 15,
action = function(pos, node, active_object_count, active_object_count_wider) action = function(pos, node, active_object_count, active_object_count_wider)
minetest.set_node(pos, {name = "womd:radioactive_air"}) minetest.set_node(pos, {name = "womd:radioactive_air"})
end, end,