MikrySoft

eatTree

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