Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aArgs = {...}
- local depth = aArgs[1]
- function digForward()
- turtle.dig()
- while turtle.forward() == false do
- turtle.dig()
- end
- end
- function digUp()
- turtle.digUp()
- while turtle.up() == false do
- turtle.digUp()
- end
- end
- for i = 1, depth, 1 do
- turtle.digDown()
- turtle.down()
- if i > 1 then
- turtle.placeUp()
- end
- end
- turtle.turnRight()
- digForward()
- turtle.digUp()
- digForward()
- for i = 1, depth - 1, 1 do
- digUp()
- if i == 2 then
- turtle.turnRight()
- digForward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(2)
- turtle.place()
- digUp()
- turtle.select(4)
- turtle.placeDown()
- digForward()
- turtle.dig()
- turtle.select(3)
- turtle.place()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.select(1)
Advertisement
Add Comment
Please, Sign In to add comment