Advertisement
Guest User

abm

a guest
Feb 4th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. minetest.register_abm({
  2.       nodenames = {"volcano:errupted_lava_source"},
  3.       interval = 5,
  4.       chance = 5,
  5.       action = function(pos)
  6.          pos.y = pos.y + 1
  7.          local node_above = minetest.get_node(pos)
  8.          if pos.y < 50 then
  9.             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 ==  "\
  10. 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
  11.                minetest.add_node(pos,{name="volcano:errupted_lava_source"})
  12.             end
  13.          end
  14.       end,
  15. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement