Plazter

PlazLayerdig

May 24th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. local t = turtle
  2. local dup = t.digUp
  3.  
  4. function Dig()
  5. t.dig()
  6. dup()
  7. end
  8.  
  9. function move()
  10. t.forward()
  11. end
  12.  
  13. function drop()
  14. t.select(16)
  15. for slot = 1,15 do
  16. t.select(slot)
  17. t.drop()
  18. t.select(16)
  19. t.dig()
  20. t.select(1)
  21. end
  22.  
  23. function fullInv()
  24. if t.getItemCount(15) > 60 then
  25. drop()
  26. else
  27. return
  28. end
  29.  
  30. function right()
  31. t.turnRight()
  32. turtle.dig()
  33. t.forward()
  34. t.digUp()
  35. t.turnRight()
  36. end
  37.  
  38. function left()
  39. t.turnLeft()
  40. turtle.dig()
  41. t.forward()
  42. t.digUp()
  43. t.turnLeft()
  44. end
  45.  
  46. function row()
  47. Dig()
  48. move()
  49. fullInv()
  50. end
  51.  
  52.  
  53. for i = 1,10 do
  54. row()
  55. right()
  56. row()
  57. left()
  58. row()
  59. right()
  60. end
Advertisement
Add Comment
Please, Sign In to add comment