Advertisement
Exumed

Untitled

Jan 20th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. local FIELDSIZE = 6
  2.  
  3.  
  4. for i = 1, 16 do
  5. turtle.select(i)
  6. if turtle.refuel(0) then
  7. print("Slot "..i.." is valid fuel")
  8. turtle.refuel()
  9. end
  10. end
  11.  
  12.  
  13. function placeLandMark()
  14. turtle.forward()
  15. turtle.select(5)
  16. turtle.placeDown()
  17. turtle.forward()
  18.  
  19. turtle.turnLeft()
  20. turtle.turnLeft()
  21.  
  22. turtle.select(2)
  23. turtle.place()
  24.  
  25. turtle.turnLeft()
  26. turtle.turnLeft()
  27. end
  28.  
  29. function forward(count)
  30. for i = 1, count do
  31. turtle.forward()
  32. end
  33. end
  34.  
  35. function reposition()
  36. turtle.turnLeft()
  37. turtle.forward()
  38. turtle.turnLeft()
  39. turtle.forward()
  40. turtle.turnRight()
  41. end
  42.  
  43. function placeQuary()
  44. turtle.select(3)
  45. turtle.place()
  46. end
  47.  
  48. function nextRun()
  49. turtle.turnRight()
  50. turtle.forward()
  51. turtle.forward()
  52. turtle.turnLeft()
  53. turtle.forward()
  54. turtle.turnRight()
  55. turtle.turnRight()
  56. end
  57.  
  58.  
  59. function PLACE()
  60. placeLandMark()
  61.  
  62. forward(count)
  63. placeLandMark()
  64. reposition()
  65.  
  66. forward(count)
  67. placeLandMark()
  68. reposition()
  69.  
  70. forward(count)
  71. placeLandMark()
  72. reposition()
  73.  
  74. forward(count)
  75. placeQuary()
  76. end
  77.  
  78. PLACE()
  79. nextRun()
  80. PLACE()
  81. nextRun()
  82. PLACE()
  83. nextRun()
  84. PLACE()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement