daily pastebin goal
48%
SHARE
TWEET

Mine_Pro_v1.1

a guest Feb 16th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[Mine_Pro_v1.1
  2. Neil O'Mara
  3. 2/16/19
  4. Builds 3*3 cobblestone tunnel and places torches
  5. What's new in 1.1: Different digging and block placing scripts to fix bugs in previous version
  6. How to use: Place turtle in the bottom left corner of where you want tunnel, and have 64 torches in slot 1 and 64 cobblestone in slot 2
  7. Notes: Turtle digs a 5*5 tunnel, and places blocks around to make a 3*3 tunnel with cobblestone walls, ceiling, and floor
  8. Notes continued: Positions of the tunnel are labeled as a number, a decimal point, and another number
  9. Notes continued: The first number in the tunnel position is the column, and the second number after the decimal point is the row
  10. Notes continued: Position 2.2 is column 2 row 2.]]
  11.  
  12. -- Notifications --
  13. textutils.slowPrint('Mining Sequence Initiated') -- Tells user that program has started successfully --
  14. if turtle.getItemCount(1) < 1 then error('Out Of Torches') -- Terminates program when out of torches --
  15. end
  16. if turtle.getItemCount(2) < 1 then error('Out Of Cobblestone') -- Terminates program when out of cobblestone --
  17. end
  18.  
  19. -- Positioning To Dig First 5*5 Tunnel --
  20. turtle.dig() -- dig 2.2 --
  21. turtle.forward() -- position 2.2 --
  22.  
  23. -- Digging Column 2 --
  24. turtle.digDown() -- dig 2.1 --
  25. turtle.digUp() -- dig 2.3 --
  26. turtle.up() -- position 2.3 --
  27. turtle.digUp() -- dig 2.4 --
  28. turtle.up() -- position 2.4 --
  29. turtle.digUp() -- dig 2.5 --
  30. turtle.down() -- position 2.3 --
  31. turtle.down() -- position 2.2 --
  32.  
  33. -- Positioning To Dig Column 1 --
  34. turtle.turnLeft()
  35. turtle.dig() -- dig 1.2 --
  36. turtle.forward() -- position 1.2 --
  37. turtle.turnRight() -- facing forward --
  38.  
  39. -- Digging Column 1 --
  40. turtle.digDown()
  41. turtle.digUp()
  42. turtle.up()
  43. turtle.digUp()
  44. turtle.up()
  45. turtle.digUp()
  46. turtle.down()
  47. turtle.down()
  48.  
  49. -- Positioning To Dig Column 3 --
  50. turtle.turnRight()
  51. turtle.forward() -- position 2.2 --
  52. turtle.dig() -- dig 3.2 --
  53. turtle.forward() -- position 3.2 --
  54. turtle.turnLeft() -- facing forward --
  55.  
  56. --Digging Column 3 --
  57. turtle.digDown()
  58. turtle.digUp()
  59. turtle.up()
  60. turtle.digUp()
  61. turtle.up()
  62. turtle.digUp()
  63. turtle.down()
  64. turtle.down()
  65.  
  66. -- Positioning To Dig Column 4 --
  67. turtle.turnRight()
  68. turtle.dig() -- dig 4.2 --
  69. turtle.forward() -- position 4.2 --
  70. turtle.turnLeft() -- facing forward --
  71.  
  72. -- Digging Column 4 --
  73. turtle.digDown()
  74. turtle.digUp()
  75. turtle.up()
  76. turtle.digUp()
  77. turtle.up()
  78. turtle.digUp()
  79. turtle.down()
  80. turtle.down()
  81.  
  82. -- Positioning To Dig Column 5 --
  83. turtle.turnRight()
  84. turtle.dig() -- dig 5.2 --
  85. turtle.forward() -- position 5.2 --
  86. turtle.turnLeft() -- facing forward --
  87.  
  88. -- Digging Column 5 --
  89. turtle.digDown()
  90. turtle.digUp()
  91. turtle.up()
  92. turtle.digUp()
  93. turtle.up()
  94. turtle.digUp()
  95. turtle.down()
  96. turtle.down()
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