Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- if turtle.detect()== flase then
- if turtle.getItemCount(1)>1 then
- turtle.placeDown()
- turtle.forward()
- else
- if turtle.getFacing()== 3 then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- turtle.Forward()
- turtle.TurnRight()
- end
- else
- turtle.select(2)
- turtle.placeUp()
- turtle.select(1)
- turtle.suck()
- turtle.select(2)
- turtle.dig()
- turtle.select(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement