daily pastebin goal
56%
SHARE
TWEET

tunnelv6.3

a guest Jun 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function digpatternforward()
  2. for i = 1,7 do
  3. for i = 1,5 do
  4. while not turtle.detectDown() do
  5. turtle.select(1)
  6. turtle.placeDown()
  7. end
  8. turtle.dig()
  9. end
  10. turtle.forward()
  11. turtle.digUp()
  12. end
  13. torchhandler()
  14. end
  15. function digpatternright()
  16. turtle.turnRight()
  17. for x = 1,2 do
  18. turtle.dig()
  19. turtle.forward()
  20. turtle.digUp()
  21. end
  22. turtle.turnRight()
  23. end
  24. function digpatternleft()
  25. turtle.turnLeft()
  26. for x = 1,2 do
  27. turtle.dig()
  28. turtle.forward()
  29. turtle.digUp()
  30. end
  31. turtle.turnLeft()
  32. end
  33. function torchhandler()
  34. turtle.turnLeft()
  35. turtle.dig()
  36. turtle.select(2)
  37. turtle.place()
  38. turtle.turnRight()
  39. end
  40. function offloadmats()
  41. turtle.turnRight()
  42. turtle.turnRight()
  43. for i =1,4 do
  44. turtle.dig()
  45. sleep(1)
  46. end
  47. turtle.up()
  48. turtle.dig()
  49. turtle.down()
  50. turtle.select(3)
  51. turtle.place()
  52. for i = 4,16 do
  53. turtle.select(i)
  54. turtle.refuel()
  55. turtle.drop()
  56. end
  57. turtle.turnRight()
  58. turtle.turnRight()
  59. end
  60. function excecuteall()
  61. for i = 1,3 do
  62. digpatternforward()
  63. end
  64. digpatternright()
  65. for i = 1,3 do
  66. digpatternforward()
  67. end
  68. digpatternleft()
  69. end
  70.  
  71.  
  72. for i = 1,2 do -- aantal gangen
  73. term.clear()
  74. print("SLOT 1 filling floor")
  75. print("SLOT 2 torches")
  76. print("SLOT 3 chests")
  77. excecuteall()
  78. end
  79. offloadmats()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top