Guest User

Untitled

a guest
Jun 17th, 2018
10
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minetest.register_abm({
  2.                 nodenames = { options.grow_plant },
  3.                 interval = options.interval,
  4.                 chance = options.grow_chance,
  5.                 catch_up = false,
  6.                 action = function(pos, node, active_object_count, active_object_count_wider)
  7.                         local p_top = {x=pos.x, y=pos.y+1, z=pos.z}
  8.                         local p_bot = {x=pos.x, y=pos.y-1, z=pos.z}
  9.                         local n_top = minetest.get_node(p_top)
  10.                         local n_bot = minetest.get_node(p_bot)
  11.  
  12.                         if nbot and string.find(n_bot.name,"flower_pot") then
  13.                         minetest.log("action","moretrees: "..dump(options.grow_plant).." cannot grow because it's placed on a flower pot!")
  14.                         return
  15.                         end
RAW Paste Data