Guest User

Untitled

a guest
Dec 14th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.96 KB | None | 0 0
  1. local v = 1
  2. local y = 0
  3. local x = 0
  4.  
  5. function placesat()
  6. turtle.placeDown()
  7. turtle.forward()
  8. turtle.placeDown()
  9. turtle.turnRight()
  10. turtle.forward()
  11. turtle.placeDown()
  12. turtle.turnRight()
  13. turtle.forward()
  14. turtle.placeDown()
  15. turtle.forward()
  16. turtle.placeDown()
  17. turtle.turnRight()
  18. turtle.forward()
  19. turtle.placeDown()
  20. turtle.forward()
  21. turtle.placeDown()
  22. turtle.turnRight()
  23. turtle.forward()
  24. turtle.placeDown()
  25. turtle.forward()
  26. turtle.placeDown()
  27. turtle.turnRight()
  28. turtle.forward()
  29. turtle.turnLeft()
  30. turtle.back()
  31. x = 0
  32. end
  33. function landing()
  34. turtle.turnLeft()
  35. turtle.forward()
  36. turtle.turnRight()
  37. turtle.forward()
  38. turtle.turnLeft()
  39. turtle.forward()
  40. turtle.turnLeft()
  41. turtle.forward()
  42. turtle.turnLeft()
  43. turtle.down()
  44. turtle.down()
  45. turtle.forward()
  46. turtle.forward()
  47. turtle.turnLeft()
  48.  repeat
  49.  turtle.down()
  50.  v = v - 1
  51.  until v < 2
  52. end
  53. print ("Enter your current elevation [Y] and press enter to begin.")
  54. y = read()
  55. repeat
  56. turtle.up()
  57. v = v + 1
  58. until v > (128 - y)
  59. placesat()
  60. repeat
  61. turtle.forward()
  62. x = x + 1
  63. until x > 31
  64. placesat()
  65. turtle.turnLeft()
  66. repeat
  67. turtle.forward()
  68. x = x + 1
  69. until x > 31
  70. turtle.turnRight()
  71. placesat()
  72. turtle.turnLeft()
  73. turtle.turnLeft()
  74. repeat
  75. turtle.forward()
  76. x = x + 1
  77. until x > 31
  78. turtle.turnRight()
  79. turtle.turnRight()
  80. placesat()
  81. turtle.turnLeft()
  82. turtle.turnLeft()
  83. repeat
  84. turtle.forward()
  85. x = x + 1
  86. until x > 31
  87. turtle.turnRight()
  88. turtle.turnRight()
  89. placesat()
  90. turtle.turnRight()
  91. repeat
  92. turtle.forward()
  93. x = x + 1
  94. until x > 31
  95. turtle.turnLeft()
  96. placesat()
  97. turtle.turnRight()
  98. repeat
  99. turtle.forward()
  100. x = x + 1
  101. until x > 31
  102. turtle.turnLeft()
  103. placesat()
  104. repeat
  105. turtle.forward()
  106. x = x + 1
  107. until x > 31
  108. placesat()
  109. repeat
  110. turtle.forward()
  111. x = x + 1
  112. until x > 31
  113. placesat()
  114. turtle.turnLeft()
  115. repeat
  116. turtle.forward()
  117. x = x + 1
  118. until x > 31
  119. x = 0
  120. turtle.turnLeft()
  121. repeat
  122. turtle.forward()
  123. x = x + 1
  124. until x > 31
  125. x = 0
  126. turtle.turnRight()
  127. turtle.turnRight()
  128. landing()
Add Comment
Please, Sign In to add comment