Aarondmorgan

Test

Dec 31st, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. checkFuel()
  2. turtle.dig()
  3. sleep(0.25)
  4. turtle.forward()
  5. turtle.dig()
  6. local height = 0
  7. if turtle.detectUp() == true then
  8. repeat
  9. turtle.dig()
  10. turtle.digUp()
  11. turtle.up()
  12. height = height + 1
  13. until turtle.detectUp() == false
  14. end
  15. checkFuel()
  16. turtle.turnRight()
  17. if turtle.detect() == true then
  18. turtle.dig()
  19. end
  20. turtle.forward()
  21. turtle.turnLeft()
  22. if turtle.detectDown() == true then
  23. repeat
  24. turtle.dig()
  25. turtle.digDown()
  26. turtle.down()
  27. height = height - 1
  28. until height == 0
  29. end
  30. turtle.dig()
  31. checkFuel()
  32. turtle.turnLeft()
  33. turtle.turnLeft()
  34. local dist = 0
  35. if turtle.detect() == false then
  36. repeat
  37. turtle.forward()
  38. dist = dist + 1
  39. until turtle.detect() == true
  40. end
  41. turtle.drop()
  42. turtle.select(2)
  43. turtle.drop()
  44. turtle.select(3)
  45. turtle.drop()
  46. turtle.select(4)
  47. turtle.drop()
  48. turtle.select(5)
  49. turtle.drop()
  50. turtle.select(6)
  51. turtle.drop()
  52. turtle.select(7)
  53. turtle.drop()
  54. turtle.select(1)
  55. turtle.turnLeft()
  56. turtle.turnLeft()
  57. if d > 0 then
  58. turtle.forward()
  59. end
  60. turtle.turnLeft()
  61. turtle.forward()
  62. turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment