Advertisement
Guest User

Untitled

a guest
Mar 13th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. term.write("how Long should the tunnel be?")
  2. local lol = read()
  3. local torch = 0
  4. while turtle.getFuelLevel() < lol*1 do
  5. local q = turtle.getFuelLevel()
  6. if turtle.getFuelLevel() < lol*1 then
  7. term.write("Fuel Level is at "..q.." But needs to be "..lol*7)
  8. term.write("Please put Fuel in 1st slot")
  9. os.sleep(5)
  10. turtle.refuel()
  11. end
  12. end
  13. term.write("Mining a "..lol.." block long tunnel")
  14.  
  15. for a = 1,lol do
  16. turtle.dig()
  17. turtle.forward()
  18. turtle.digUp()
  19. turtle.digDown()
  20. turtle.turnRight()
  21. turtle.dig()
  22. turtle.forward()
  23. turtle.digUp()
  24. turtle.digDown()
  25. turtle.back()
  26. turtle.turnLeft()
  27. turtle.turnLeft()
  28. turtle.dig()
  29. turtle.forward()
  30. turtle.digUp()
  31. turtle.digDown()
  32. turtle.back()
  33. turtle.turnRight()
  34. torch = torch + 1
  35. if torch == 8 then
  36. turtle.down()
  37. turtle.turnRight()
  38. turtle.turnRight()
  39. turtle.select(16)
  40. turtle.place()
  41. turtle.turnRight()
  42. turtle.turnRight()
  43. turtle.up()
  44. torch = 0
  45. end
  46. if turtle.getItemCount(15) >= 1 then
  47. local length = a
  48. turtle.turnRight()
  49. turtle.turnRight()
  50. for d = 1,length do
  51. turtle.forward()
  52. end
  53. turtle.turnRight()
  54. turtle.turnRight()
  55. for e = 1,15 do
  56. turtle.select(e)
  57. turtle.dropDown(64)
  58. end
  59. for f = 1,length do
  60. turtle.forward()
  61. end
  62. turtle.select(1)
  63. end
  64. end
  65. for b = 1,lol do
  66. turtle.back()
  67. end
  68. for c = 1,16 do
  69. turtle.select(c)
  70. turtle.dropDown(64)
  71. end
  72. turtle.select(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement