portablejim

Tesseract code

Sep 25th, 2013 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. TARGET_FREQUENCY = 2
  2.  
  3. turtle.select(1)
  4. a = 11
  5. b = 0
  6. while b < a do
  7. turtle.forward()
  8. b = b+1
  9. if b == a and turtle.getItemCount(1) < 1 then
  10. turtle.select(2)
  11. turtle.placeUp()
  12. turtle.select(1)
  13. turtle.suckUp()
  14. turtle.digUp()
  15. turtle.placeDown()
  16. b = 0
  17. end
  18. if b == a and turtle.getItemCount(1) > 0 then
  19. turtle.placeDown()
  20. b = 0
  21. end
  22. p = peripheral.wrap("bottom")
  23. p.setFrequency(TARGET_FREQUENCY)
  24. end
Add Comment
Please, Sign In to add comment