Advertisement
Andersfc

Wood-Cut

Dec 8th, 2012
782
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.70 KB | None | 0 0
  1. --pastebin code: "qED2HSyW"
  2.  
  3. print("leave 1 wood log in slot #16, put saplings in slot #15 and put bonemeal in slot #14 (not neccesary) also Put a chest, behind the turtle and (optionally) place a block 7-8 blocks up in the Air, so you wont get the big, annoying trees! or use Birch saplings, put Bone-meal in slot #10-14")
  4.  
  5. a = 0
  6.  
  7. function cut()
  8.  
  9. turtle.select(16)
  10. if turtle.compare(16) == true then
  11. turtle.select(1)
  12. turtle.dig()
  13. turtle.forward()
  14.  
  15. for i = 1,6 do
  16. turtle.digUp()
  17. turtle.up()
  18. end
  19. for i = 1,6 do
  20. turtle.select(14)
  21. turtle.dig()
  22. turtle.turnRight()
  23. turtle.dig()
  24. turtle.turnRight()
  25. turtle.dig()
  26. turtle.turnRight()
  27. turtle.dig()
  28. turtle.turnRight()
  29. turtle.down()
  30. end
  31. turtle.back()
  32. turtle.select(15)
  33. turtle.place()
  34. turtle.select(1)
  35. turtle.refuel(1)
  36. end
  37. end
  38.  
  39. while a == 0 do
  40. turtle.select(1)
  41. turtle.refuel(1)
  42. turtle.select(1)
  43. turtle.select(15)
  44. turtle.suck()
  45. turtle.suckUp()
  46. turtle.turnRight()
  47. turtle.suck()
  48. turtle.turnRight()
  49. turtle.select(1)
  50. turtle.drop()
  51. turtle.select(2)
  52. turtle.drop()
  53. turtle.select(15)
  54. turtle.turnRight()
  55. turtle.suck()
  56. turtle.turnRight()
  57. turtle.suck()
  58. turtle.select(15)
  59. turtle.place()
  60. turtle.select(1)
  61. turtle.select(1)
  62. turtle.select(14)
  63. turtle.place()
  64. if turtle.getItemCount(14) == 0 then
  65. turtle.select(13)
  66. turtle.transferTo(14)
  67. turtle.select(12)
  68. turtle.transferTo(14)
  69. turtle.select(11)
  70. turtle.transferTo(14)
  71. turtle.select(10)
  72. turtle.transferTo(14)
  73. end
  74. if turtle.getItemCount(14) == 1 then
  75. turtle.select(13)
  76. turtle.transferTo(14)
  77. turtle.select(12)
  78. turtle.transferTo(14)
  79. turtle.select(11)
  80. turtle.transferTo(14)
  81. turtle.select(10)
  82. turtle.transferTo(14)
  83. end
  84. turtle.select(1)
  85. turtle.select(15)
  86. turtle.place()
  87. turtle.select(1)
  88. cut()
  89. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement