Advertisement
NuAoA

Untitled

Apr 20th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local drillTime = 5
  2. rednet.open("top")
  3.  
  4. function moveForward()
  5. rednet.broadcast("pick")
  6. sleep(1)
  7. rs.setOutput("back",true)
  8. sleep(1)
  9. rs.setOutput("back",false)
  10. rs.setOutput("bottom",true)
  11. rednet.broadcast("drop")
  12. sleep(1)
  13. rs.setOutput("bottom",false)
  14. end
  15. function mine()
  16. moveForward()
  17. sleep(drillTime)
  18. end
  19.  
  20. while true do
  21. sleep(1)
  22. if rs.getInput("front") == true then
  23. mine()
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement