Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- if turtle.detect() then
- turtle.select(15)
- if turtle.compare() then
- turtle.up()
- turtle.forward()
- turtle.forward()
- turtle.down()
- else
- turtle.dig()
- for i=1,6 do
- turtle.digUp()
- turtle.up()
- end
- for i=1,6 do
- turtle.down()
- end
- end
- else
- turtle.forward()
- turtle.select(14)
- if not turtle.compare() then
- for i=1,4 do
- turtle.back()
- turtle.turnRight()
- turtle.forward()
- if turtle.compare() then
- break
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment