Wojbie

Swarminer Cycle Deployer

Oct 29th, 2013
2,129
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Work in Progres - turtle sendout program
  2.  
  3. rs.setOutput("front",true)
  4. while true do
  5. turtle.select(1)
  6. if not turtle.suckDown() then break end
  7. turtle.dropDown(turtle.getItemCount(1)-1)
  8. while turtle.detect() do sleep(1) end
  9. turtle.place()
  10.  
  11. for i=2,4 do
  12.     if turtle.getItemCount(i)>0 then
  13.         turtle.select(i)
  14.         turtle.drop(1)
  15.     end
  16. end
  17.  
  18. sleep(0.1)
  19. peripheral.call("front","turnOn")
  20. end
  21. rs.setOutput("front",false)
RAW Paste Data