Advertisement
Spatzenhirn123

Enderchest-T-Reihe---Hinten

Oct 16th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. -------------------------------------------------------------------------------------------------------------------------
  2. --CODE-------------------------------------------------------------------------------------------------------------------
  3. -------------------------------------------------------------------------------------------------------------------------
  4. --Mining Times
  5. local args = {...}
  6. a = args[1]
  7. --Start Height
  8. b = 75
  9.  
  10. --Startcheck: Fuel-------------------------------------------------------------------------------------------------------
  11. function Start()
  12. shell.run("label set back")
  13. while turtle.getFuelLevel()<(2*b*a+1000) do
  14. turtle.select(2)
  15. turtle.placeUp()
  16. turtle.suckUp()
  17. shell.run("refuel all")
  18. turtle.select(2)
  19. turtle.digUp()
  20. end
  21.  
  22. print(" ")
  23. print("--------------------------------")
  24. print("Starting Quarry!")
  25. print("--------------------------------")
  26. end
  27.  
  28. --Items to Ender-Chest---------------------------------------------------------------------------------------------------
  29. function Item()
  30. turtle.dig()
  31. turtle.select(1)
  32. turtle.placeUp()
  33. for i=3,16,1 do
  34. turtle.select(i)
  35. turtle.dropUp()
  36. sleep(0.5)
  37. end
  38. turtle.select(1)
  39. turtle.digUp()
  40. end
  41.  
  42. --Next Mining-Spot-------------------------------------------------------------------------------------------------------
  43. function Next()
  44. turtle.dig()
  45. turtle.forward()
  46. turtle.dig()
  47. turtle.forward()
  48. turtle.dig()
  49. end
  50.  
  51. --Mining Forms-----------------------------------------------------------------------------------------------------------
  52. function T()
  53. turtle.digDown()
  54. turtle.turnRight()
  55. turtle.dig()
  56. turtle.turnRight()
  57. turtle.dig()
  58. turtle.turnRight()
  59. turtle.dig()
  60. while turtle.down()==true do
  61. turtle.digDown()
  62. turtle.dig()
  63. turtle.turnLeft()
  64. turtle.dig()
  65. turtle.turnLeft()
  66. turtle.dig()
  67. turtle.down()
  68. turtle.digDown()
  69. turtle.dig()
  70. turtle.turnRight()
  71. turtle.dig()
  72. turtle.turnRight()
  73. turtle.dig()
  74. end
  75. turtle.turnRight()
  76. for u=1,b,1 do
  77. turtle.digUp()
  78. turtle.up()
  79. end
  80. Item()
  81. end
  82.  
  83. -------------------------------------------------------------------------------------------------------------------------
  84. --Actions----------------------------------------------------------------------------------------------------------------
  85. -------------------------------------------------------------------------------------------------------------------------
  86.  
  87.  
  88. Start()
  89. for w=1,a,1 do
  90. T()
  91. Next()
  92. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement