Advertisement
xKevinn

Untitled

Feb 13th, 2013
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. turtle.forward()
  2. while turtle.detectDown() == false do
  3.     turtle.placeDown()
  4.     turtle.forward()
  5. end
  6. turtle.turnRight()
  7. if turtle.detect() == true then
  8.     turtle.dig()
  9.     turtle.forward()
  10. else
  11.     turtle.forward()
  12. end
  13. if turtle.detectDown() == false then
  14.     turtle.turnLeft()
  15.     while turtle.detectDown() == false do
  16.         if turtle.detect() == false then
  17.             turtle.dig()
  18.             turtle.forward()
  19.         else
  20.             turtle.forward()
  21.         end
  22.     end
  23.     turtle.turnRight()
  24.     turtle.turnRight()
  25.     turtle.forward()
  26. else
  27.     turtle.turnRight()
  28.     while turtle.detectDown() == true do
  29.         turtle.forward()
  30.     end
  31. end
  32. while turtle.detectDown() == false do
  33.     turtle.forward()
  34.     turtle.placeDown()
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement