Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 0
- function clear()
- while not turtle.back() do
- turtle.turnRight()
- turtle.turnRight()
- sleep(1)
- while turtle.detect() do
- turtle.dig()
- end
- sleep(1)
- turtle.turnRight()
- turtle.turnRight()
- end
- turtle.forward()
- end
- function down()
- while x <= 5 do -- REPLACE D WITH CURRENT Y-5
- turtle.digDown()
- turtle.down()
- x = x+1
- end
- end
- function up()
- for i = 1, x do
- while not turtle.up() do
- turtle.digUp()
- end
- end
- x = 0
- end
- print("This code hasn't been tested over a size of 6x6.")
- print("Requires chunk loader in the area.")
- print("Put coal in slot 15 and enderchest in slot 16.")
- print("Depth D must be edited prior to program use")
- print("Hold Ctrl + T to stop program.")
- print("At the moment turtle will not return to start location")
- term.write("Please enter commander name: ")
- K = read()
- term.write("How far out? ")
- o = read()
- term.write("How far right? ")
- w = read()
- term.write("Commencing Operation: deepDigger!!!")
- for k = 0, w do
- if k >= 1 then do
- for l = 1, o do
- turtle.back()
- end
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- clear()
- end
- for u = 1, o do
- turtle.dig()
- while not turtle.forward() do
- turtle.dig()
- sleep(1)
- end
- turtle.select(15)
- turtle.digDown()
- down()
- up()
- turtle.digUp()
- turtle.dig()
- turtle.select(16)
- while not turtle.placeUp() do
- turtle.digUp()
- end
- for d = 1, 14 do
- turtle.select(d)
- turtle.dropUp()
- end
- turtle.select(16)
- turtle.digUp()
- turtle.select(15)
- turtle.refuel(3)
- sleep(2)
- d = 1
- end
- end
- end
- for J = 1, o do
- turtle.back()
- end
- turtle.turnRight()
- for j = 0, w do
- turtle.back()
- end
- turtle.turnLeft()
- print("All done")
- print("Please command me")
- print(K)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement