Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. minetest.register_abm(
  2.         {nodenames = {"mesecons_blinkyplant:blinky_plant_off"},
  3.         interval = BLINKY_PLANT_INTERVAL,
  4.         chance = 1,
  5.         action = function(pos, node, active_object_count, active_object_count_wider)
  6.                 --minetest.remove_node(pos)
  7.                 minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_on"})
  8.                 nodeupdate(pos)
  9.                 mesecon:receptor_on(pos)
  10.         end,
  11. })
  12.  
  13. minetest.register_abm({
  14.         nodenames = {"mesecons_blinkyplant:blinky_plant_on"},
  15.         interval = BLINKY_PLANT_INTERVAL,
  16.         chance = 1,
  17.         action = function(pos, node, active_object_count, active_object_count_wider)
  18.                 --minetest.remove_node(pos)
  19.                 minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_off"})
  20.                 nodeupdate(pos)
  21.                 mesecon:receptor_off(pos)
  22.         end,
  23. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement