Advertisement
Aixler

bee

Nov 22nd, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. chestSide = "right"
  2. redstoneSide = "left"
  3. alvSide = "back"
  4.  
  5. chest = peripheral.wrap(chestSide)
  6. alv = peripheral.wrap(alvSide)
  7.  
  8. redstone.setOutput(redstoneSide, false)
  9.  
  10. while alv.getQueen()["health"] > 1 do
  11.     sleep(10)
  12. end
  13.  
  14. if alv.getQueen()["health"] == 1 then
  15.     chest.pushItem("south", 1, 1)
  16.     sleep(40)
  17.     chest.pullItem("south", 1, 1)
  18.     redstone.setOutput(redstoneSide, true)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement