bac generates diamond when in lava

master
Zander Marshall 2016-09-25 14:49:03 +10:00
parent 3083efd364
commit 6f3c63e2bc
1 changed files with 10 additions and 0 deletions

View File

@ -167,3 +167,13 @@ minetest.register_abm({
minetest.set_node({x = pos.x, y = pos.y + 1, z = pos.z}, {name = "default:mese"})
end
})
minetest.register_abm({
nodenames = {"bac:bac_box"},
neighbors = {"default:lava_source", "default:lava_flowing"},
interval = 1.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.set_node({x = pos.x, y = pos.y + 1, z = pos.z}, {name = "default:diamond"})
end
})