SHARE
TWEET

abm

a guest Feb 4th, 2015 186 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top