Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minetest.register_abm(
- {nodenames = {"mesecons_blinkyplant:blinky_plant_off"},
- interval = BLINKY_PLANT_INTERVAL,
- chance = 1,
- action = function(pos, node, active_object_count, active_object_count_wider)
- --minetest.remove_node(pos)
- minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_on"})
- nodeupdate(pos)
- mesecon:receptor_on(pos)
- end,
- })
- minetest.register_abm({
- nodenames = {"mesecons_blinkyplant:blinky_plant_on"},
- interval = BLINKY_PLANT_INTERVAL,
- chance = 1,
- action = function(pos, node, active_object_count, active_object_count_wider)
- --minetest.remove_node(pos)
- minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_off"})
- nodeupdate(pos)
- mesecon:receptor_off(pos)
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement