Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Usage: pastebin get 2wgS78bK strip
- --strip <Depth of Tunnels> <No. of Cycles>
- --Put Fuel in Slot 1
- --Put Bridging Material in slot 2
- --Put Chests in slot 3. 1 chest for every Cycle
- --Remember to keep turtle chunk loaded
- local tArgs = { ... }
- function AboutTurn()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- function detect()
- if turtle.detect() then
- turtle.dig()
- end
- end
- function detectUp()
- if turtle.detectUp() then
- turtle.digUp()
- end
- if turtle.detectUp() then
- turtle.digUp()
- end
- if turtle.detectUp() then
- turtle.digUp()
- end
- if turtle.detectUp() then
- turtle.digUp()
- end
- if turtle.detectUp() then
- turtle.digUp()
- end
- if turtle.detectUp() then
- turtle.digUp()
- end
- if turtle.detectUp() then
- turtle.digUp()
- end
- turtle.up()
- end
- function detectDown()
- if turtle.detectDown() then
- turtle.digDown()
- end
- turtle.down()
- end
- function forward()
- if turtle.detect() then
- detect()
- end
- if turtle.detect() then
- detect()
- end
- if turtle.detect() then
- detect()
- end
- if turtle.detect() then
- detect()
- end
- if turtle.detectDown() then
- turtle.forward()
- else
- turtle.select(2)
- turtle.placeDown()
- turtle.forward()
- end
- end
- function tunnel()
- turtle.refuel()
- detect()
- forward()
- detect()
- turtle.turnLeft()
- detect()
- detectUp()
- detect()
- detectUp()
- detect()
- AboutTurn()
- detect()
- detectDown()
- detect()
- detectDown()
- detect()
- turtle.turnLeft()
- end
- function tunnelFinish()
- forward()
- turtle.turnLeft()
- detect()
- detectUp()
- detect()
- detectUp()
- detect()
- AboutTurn()
- detect()
- detectDown()
- detect()
- detectDown()
- detect()
- turtle.turnLeft()
- end
- if tArgs[1] == nil then
- depth = 1
- else
- depth = tArgs[1]
- end
- if tArgs[2] == nil then
- times = 1
- else
- times = tArgs[2]
- end
- tunnel()
- tunnelFinish()
- for a = 1, times do
- tunnel()
- tunnel()
- tunnelFinish()
- AboutTurn()
- turtle.forward()
- turtle.turnLeft()
- for i = 1, depth - 1 do
- tunnel()
- end
- tunnelFinish()
- AboutTurn()
- for i = 1, depth do
- forward()
- end
- AboutTurn()
- turtle.select(3)
- turtle.place()
- turtle.select(1)
- turtle.drop()
- for z = 4, 16 do
- turtle.select(z)
- turtle.drop()
- end
- AboutTurn()
- forward()
- for i = 1, depth - 1 do
- tunnel()
- end
- tunnelFinish()
- AboutTurn()
- for i = 1, depth do
- forward()
- end
- forward()
- turtle.select(1)
- turtle.drop()
- for z = 4, 16 do
- turtle.select(z)
- turtle.drop()
- end
- turtle.turnLeft()
- forward()
- tunnel()
- tunnelFinish()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement