Rwd208

Final Turtle Mining Well Program

Jul 15th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.29 KB | None | 0 0
  1. turtle.turnRight()
  2. turtle.select(13)
  3. turtle.place()
  4. turtle.turnLeft()
  5. turtle.back()
  6. for i= 1,4 do
  7.   turtle.place()
  8.   turtle.turnLeft()
  9.   turtle.forward()
  10.   turtle.turnRight()
  11. end
  12. turtle.back()
  13. turtle.turnRight()
  14. turtle.forward()
  15. turtle.turnLeft()
  16. turtle.back()
  17. turtle.select(15)
  18. for c=1,4 do
  19.   turtle.place()
  20.   turtle.turnRight()
  21.   turtle.forward()
  22.   turtle.turnLeft()
  23. end
  24. turtle.select(14)
  25. turtle.turnLeft()
  26. turtle.forward()
  27. turtle.turnRight()
  28. turtle.up()
  29. turtle.forward()
  30. turtle.forward()
  31. turtle.select(14)
  32. for f=1,4 do
  33.   turtle.placeDown()
  34.   turtle.turnLeft()
  35.   turtle.forward()
  36.   turtle.turnRight()
  37. end
  38. turtle.turnRight()
  39.   local f = turtle.getFuelLevel()
  40.   if f < 100 then
  41.     turtle.select(16)
  42.     turtle.placeUp()
  43.     turtle.suckUp()
  44.     turtle.refuel(3)
  45.     turtle.dropUp()
  46.     turtle.digUp()
  47.     turtle.select(14)
  48. sleep(8)
  49. for i=1,4 do
  50.   turtle.forward()
  51.   turtle.digDown()
  52. end
  53. turtle.down()
  54. turtle.turnRight()
  55. turtle.forward()
  56. turtle.turnRight
  57. for i=1,4 do
  58.   turtle.dig()
  59.   turtle.forward()
  60. end
  61. turtle.select(13)
  62. turtle.turnRight()
  63. turtle.forward()
  64. turtle.forward()
  65. turtle.turnRight()
  66. for i=1,5 do
  67.   turtle.dig()
  68.   turtle.forward()
  69. end
  70. turtle.turnLeft()
  71. turtle.turnLeft()
  72. turtle.forward()
  73. turtle.forward()
  74. turtle.turnRight()
  75. turtle.forward()
Advertisement
Add Comment
Please, Sign In to add comment