Advertisement
Erit1566

3x3 Turtle Miner

Feb 20th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.76 KB | None | 0 0
  1. function dig()
  2.     turtle.dig()
  3.     turtle.forward()
  4.     turtle.digup()
  5.     turtle.digdown()
  6.     turtle.turnLeft()
  7.     turtle.dig()
  8.     turtle.forward()
  9.     turtle.digup()
  10.     turtle.digdown()
  11.     turtle.turnLeft()
  12.     turtle.turnLeft()
  13.     turtle.forward()
  14.     turtle.forward()
  15.     turtle.digup()
  16.     turtle.digdown()
  17.     turtle.turnRight()
  18.     turtle.turnRight()
  19.     turtle.forward()
  20.     turtle.turnRight()
  21. end
  22.  
  23. function drop()
  24.     turtle.select(1)
  25.     turtle.drop()
  26.     turtle.select(3)
  27.     turtle.drop()
  28.     turtle.select(4)
  29.     turtle.drop()
  30.     turtle.select(5)
  31.     turtle.drop()
  32.     turtle.select(6)
  33.     turtle.drop()
  34.     turtle.select(7)
  35.     turtle.drop()
  36.     turtle.select(8)
  37.     turtle.drop()
  38.     turtle.select(9)
  39.     turtle.drop()
  40.     turtle.select(10)
  41.     turtle.drop()
  42.     turtle.select(11)
  43.     turtle.drop()
  44.     turtle.select(12)
  45.     turtle.drop()
  46.     turtle.select(13)
  47.     turtle.drop()
  48.     turtle.select(14)
  49.     turtle.drop()
  50.     turtle.select(15)
  51.     turtle.drop()
  52.     turtle.select(16)
  53.     turtle.drop()
  54. end
  55.  
  56. function torch()
  57.     turtle.select(2)
  58.     turtle.placedown()
  59. end
  60.  
  61. function go()
  62.     for i = 1, 5 do
  63.         dig()
  64.     end
  65.     torch()
  66. end
  67.  
  68. function back()
  69.     turtle.turnLeft()
  70.     turtle.turnLeft()
  71.     for i = 1, 35 do
  72.         turtle.forward()
  73.     end
  74. end
  75.  
  76. term.clear()
  77. print("|------------------------------------|")
  78. print("|-------------Hammer   Me!-----------|")
  79. print("|-------------By  Erit1566-----------|")
  80. print("|-------------Place  Chest-----------|")
  81. print("|-------------In   Slot  1-----------|")
  82. print("|------------Place  Torches----------|")
  83. print("|-------------In  Slot   2-----------|")
  84. print("|-------------Press Any Key----------|")
  85. print(" ")
  86. print(" ")
  87. print(" ")
  88. print(" ")
  89. os.pullEvent("char")
  90.  
  91. turtle.turnLeft()
  92. turtle.select(1)
  93. turtle.turnLeft()
  94. turtle.place()
  95. turtle.turnLeft()
  96. turtle.turnLeft()
  97.  
  98. for i = 1, 6 do
  99.     go()
  100. end
  101.  
  102. back()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement