Advertisement
kelryn123

Untitled

Sep 2nd, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. f = 0
  2. b = 0
  3. turtle.select(16)
  4. turtle.refuel()
  5. turtle.select(1)
  6.  
  7. function ClearScreen()
  8. term.clear()
  9. term.setCursorPos(1,1)
  10. end
  11.  
  12. function NoBlock()
  13. b = b+1
  14. turtle.select(b)
  15. end
  16.  
  17. local cycles = 0
  18.  
  19. print("How long do you want it to run?")
  20. cycles = read()
  21. for i = 0, cycles do
  22. turtle.up()
  23. turtle.placeDown()
  24. if turtle.detectDown() == 0 then
  25. NoBlock()
  26. end
  27. turtle.up()
  28. turtle.placeDown()
  29. if turtle.detectDown() == 0 then
  30. NoBlock()
  31. end
  32. turtle.back()
  33. turtle.place()
  34. if turtle.detect() == 0 then
  35. NoBlock()
  36. end
  37. turtle.down()
  38. turtle.placeUp()
  39. if turtle.detectUp() == 0 then
  40. NoBlock()
  41. end
  42. turtle.down()
  43. turtle.placeUp()
  44. if turtle.detectUp() == 0 then
  45. NoBlock()
  46. end
  47. turtle.back()
  48. turtle.place()
  49. if turtle.detect() == 0 then
  50. NoBlock()
  51. end
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement