Advertisement
xKevinn

Untitled

Feb 13th, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  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. else
  26.     turtle.turnRight()
  27.     while turtle.detectDown() == true do
  28.         turtle.forward()
  29.     end
  30. end
  31. while turtle.detectDown() == false do
  32.     turtle.forward()
  33.     turtle.placeDown()
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement