SHARE
TWEET

Liquid activator

a guest Jan 21st, 2016 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --
  2. -- Water and lava activation
  3. --
  4.  
  5. minetest.register_abm({
  6.     nodenames = {"default:water_flowing"},
  7.     neighbors = {"air"},
  8.     interval = 8,
  9.     chance = 256,
  10.     catch_up = false,
  11.     action = function(pos, node)
  12.         minetest.place_node(pos, {name = node.name})
  13.     end
  14. })
  15.  
  16. minetest.register_abm({
  17.     nodenames = {"default:river_water_flowing"},
  18.     neighbors = {"air"},
  19.     interval = 8,
  20.     chance = 256,
  21.     catch_up = false,
  22.     action = function(pos, node)
  23.         minetest.place_node(pos, {name = node.name})
  24.     end
  25. })
  26.  
  27. minetest.register_abm({
  28.     nodenames = {"default:lava_flowing"},
  29.     neighbors = {"air"},
  30.     interval = 8,
  31.     chance = 256,
  32.     catch_up = false,
  33.     action = function(pos, node)
  34.         minetest.place_node(pos, {name = node.name})
  35.     end
  36. })
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