Advertisement
xKevinn

Untitled

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