Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tlen=40
- local tcount=2
- local disty=1
- function unloadTurtle()
- print("Dropping items...")
- turtle.turnLeft()
- turtle.turnLeft()
- for c=1,16 do
- turtle.select(c)
- if turtle.getItemCount(c)>0 then
- turtle.drop(turtle.getItemCount(c))
- end
- end
- turtle.turnLeft()
- turtle.turnLeft()
- end
- function cargoInfo()
- for c=1,16 do
- print(turtle.getItemCount(c))
- end
- end
- function mineBit()
- while turtle.detect() do
- turtle.dig()
- sleep(0.5)
- end
- while turtle.detectUp() do
- turtle.digUp()
- sleep(0.5)
- end
- end
- function goForward()
- while turtle.detect() do
- turtle.dig()
- sleep(0.5)
- end
- turtle.forward()
- end
- function digTunnel()
- for i=1,tlen do
- mineBit()
- goForward()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- for i=1,tlen do
- goForward()
- end
- end
- function multiTunnel()
- for j=1,tcount-1 do
- digTunnel()
- turtle.turnLeft()
- for k=1,disty do
- mineBit()
- goForward()
- end
- turtle.turnLeft()
- end
- digTunnel()
- turtle.turnRight()
- for j=1,(tcount-1)*disty do
- goForward()
- end
- turtle.turnRight()
- end
- --TurtleStart in front of container
- --Turtle digs forwards, upwards, right
- function digArea(digUp,digRight,digDepth)
- end
- multiTunnel()
- unloadTurtle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement