JakeTheSnakeMC

Turtle Branch Mine

Mar 22nd, 2013
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. length = 100
  2. for i=1, length, 1 do
  3. if turtle.detect() then
  4.  turtle.dig() end
  5. if turtle.detectUp() then
  6.  turtle.digUp()
  7. end
  8.  
  9. turtle.forward()
  10. end
  11. turtle.turnRight()
  12.  
  13. end
  14.  
  15. if turtle.detect() then
  16.  turtle.dig() end
  17. if turtle.detectUp() then
  18.  turtle.digUp()
  19. end
  20.  
  21. turtle.forward()
  22. end
  23. turtle.turnLeft()
  24.  
  25. end
  26.  
  27. if turtle.detect() then
  28.  turtle.dig() end
  29. if turtle.detectUp() then
  30.  turtle.digUp()
  31. end
  32.  
  33. turtle.forward()
  34. end
  35. turtle.turnLeft()
  36.  
  37. end
  38.  
  39. if turtle.detect() then
  40.  turtle.dig() end
  41. if turtle.detectUp() then
  42.  turtle.digUp()
  43. end
  44.  
  45. turtle.forward()
  46. end
  47. turtle.turnRight()
  48.  
  49. end
  50.  
  51. function check
  52. if turtle.getItemCount(16) then
  53. turtle.dig()
  54. turtle.digUp()
  55. turtle.place(1)
  56. turtle.drop()
  57.  
  58. end
Advertisement
Add Comment
Please, Sign In to add comment