Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Quarry Parameters
- local depth = 122 -- Total depth of the shaft (63 to -59)
- -- Main Quarry Loop
- for d = 1, depth do
- -- Clear above the turtle
- while turtle.detectUp() do
- turtle.digUp()
- end
- -- Dig down and clear the way
- turtle.digDown()
- turtle.down()
- -- Dig a 5x5 area
- for w = 1, 5 do
- for l = 1, 5 do
- turtle.dig()
- turtle.forward()
- end
- if w < 5 then
- -- Turn for the next row
- if w % 2 == 1 then
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- end
- -- Return to starting position
- for i = 1, 4 do
- turtle.back()
- end
- -- Return to the surface
- turtle.up()
- end
- ZkyFct1ZkyFct1ZkyFct1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement