Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Revision history
- -- 20140805 initial draft, untested
- -- Goal:
- -- Turtle program to stair up to 54, drop a quarry plus marker,
- -- go 200 blocks (dig forward, dig up), drop a quarry plus marker
- -- turn right, go 200 blocks, drop the last marker,
- -- turn right, turn right, go 200 blocks, turn left, go 200 blocks
- -- this should allow me to come up (lava permitting) activate the markers, install the tesseract,
- -- and start a nether quarry
- -- Caveats:
- -- For now I'm going to hard code the start y position, yeah, I know, but it's easy.
- -- It also will go badly if any of the marker drop points happen to be in a lava flow.
- -- be prepared to have extra markers.
- -- It could also be a drag if the stair way floods with lava.
- -- Put marker pluses in slot 2
- -- SET THIS TO THE REAL Y COORD
- startY=32
- qWidth=200
- for x=1, 54-startY do
- turtle.digDown()
- if turtle.detect() then
- turtle.dig()
- end
- if turtle.detectUp() then
- turtle.digUp()
- end
- turtle.up()
- if turtle.detect() then
- turtle.dig()
- end
- turtle.forward()
- -- drop steps if we hit a pocket of air.
- if not turtle.detectDown() then
- turtle.select(3)
- turtle.placeDown()
- end
- end
- turtle.select(2)
- turtle.place()
- for x=1, qWidth do
- if turtle.detect() then
- turtle.dig()
- end
- if turtle.detectUp() then
- turtle.digUp()
- end
- turtle.forward()
- end
- turtle.turnRight()
- turtle.place()
- for x=1, qWidth do
- if turtle.detect() then
- turtle.dig()
- end
- if turtle.detectUp() then
- turtle.digUp()
- end
- turtle.forward()
- end
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- for x=1, qWidth do
- turtle.forward()
- end
- turtle.turnLeft()
- for x=1, qWidth do
- turtle.forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement