Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minetest.register_abm({
- nodenames = {"volcano:errupted_lava_source"},
- interval = 5,
- chance = 5,
- action = function(pos)
- pos.y = pos.y + 1
- local node_above = minetest.get_node(pos)
- if pos.y < 50 then
- if node_above.name == "air" or node_above.name == "default:desert_stone" or node_above.name == "default:desert_sand" or node_above.name == "default:stone" or node_above.name == "\
- default:dirt" or node_above.name == "default:dirt_with_grass" or node_above.name == "default:sand" or node_above.name == "volcano:errupted_lava_flowing" then
- minetest.add_node(pos,{name="volcano:errupted_lava_source"})
- end
- end
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement