Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Running tunnel operation")
- turtle.select(16)
- while true do
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.up()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.down()
- if turtle.getItemCount( turtle.getSelectedSlot() ) > 0 then
- turtle.turnLeft()
- turtle.turnLeft()
- i = 1
- while i == 1 true do
- turtle.forward()
- if turtle.detect() then
- i = 0
- turtle.turnRight()
- turtle.turnRight()
- o = 1
- while o == 1 true do
- turtle.forward()
- if turtle.detect() then
- o = 0
- z = 1
- while z < 16 true do
- turtle.select(z)
- turtle.drop()
- z = z + 1
- end
- turtle.turnLeft()
- turtle.turnLeft()
- x = 1
- while x == 1 true do
- turtle.forward()
- if turtle.detect() then
- x = 0
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment