Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "GenUtil"
- local straight = 0
- local depth = 0
- local right = 0
- local x2 = straight-1
- local y2 = depth
- local z2 = right
- function CheckDig()
- local count = turtle.getItemCount(16)
- if count > 0 then
- turtle.select(1)
- turtle.placeUp()
- EmptyUp(1)
- end
- end
- local GoRight = true;
- local Reverse = true;
- while y2 > 0 do
- y2 = y2-1
- turtle.digDown()
- turtle.down()
- while z2 > 0 do
- z2 = z2-1
- while x2 > 0 do
- x2 = x2-1
- CheckDig()
- turtle.dig()
- turtle.forward()
- end
- x2 = straight-1
- if not (z2 == 0) then
- if GoRight then
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- GoRight = not GoRight
- else
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- GoRight = not GoRight
- end
- end
- end
- turtle.turnRight()
- turtle.turnRight()
- z2 = right
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement