Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --tunneltest
- --even easier tunnel. is always 3 for now, and always go 10
- --FUNCTIONS
- -- Ensure turtle goes up
- function goUp()
- while not turtle.up() do
- upDig()
- end
- end
- --Ensure turtle goes down
- function goDown()
- while not turtle.down() do
- downDig()
- end
- end
- -- Ensure turtle moves forward
- function goForward()
- while not turtle.forward() do
- forwardDig()
- end
- end
- Dirt=1
- Cobblestone=2
- CobblestoneZ=64
- Length=10
- function VoidAhead()
- turtle.select(Dirt)
- turtle.place()
- turtle.dig()
- end
- function VoidAbove()
- turtle.select(Cobblestone)
- turtle.placeUp()
- CobblestoneZ=CobblestoneZ-1
- end
- function VoidAbove2()
- turtle.select(Cobblestone)
- turtle.placeUp()
- turtle.digUp()
- end
- goUp()
- goUp()
- --tunnel ceiling, 10 long...
- for i=1, Length do
- if turtle.detect() == false then
- VoidAhead()
- goForward()
- else if turle.detect() == true then
- goForward()
- end
- end
- if turtle.detectUp() == false then
- VoidAbove()
- end
- end
- for i=1, Length do
- shell.run('go back')
- end
- shell.run('go down 2')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement