Guest User

almost done.

a guest
Dec 29th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. function s3()
  2. turtle.select(3)
  3. if turtle.compare() then
  4. return true
  5. else
  6. return false
  7. end
  8. end
  9.  
  10. function sap()
  11. turtle.select(1)
  12. if turtle.compare() == true then
  13. turtle.select(2)
  14. turtle.place()
  15. elseif
  16. s3() == true then
  17. harvest()
  18. else
  19. turtle.dig()
  20. turtle.select(1)
  21. turtle.place()
  22. sap()
  23. end
  24. end
  25.  
  26. function logger()
  27. for i=1, 7 do
  28. turtle.up()
  29. end
  30. end
  31.  
  32. function harvest()
  33. turtle.dig()
  34. turtle.forward()
  35. logger()
  36. end
  37.  
  38. function cutter()
  39. sap()
  40. down()
  41. turtle.back()
  42. end
  43.  
  44. cutter()
  45.  
  46.  
  47.  
  48. In my current slots of the turtle I have
  49.  
  50. S1 Sapling
  51.  
  52. S2 Bonemeal
  53.  
  54. S3 Birch Log
Advertisement
Add Comment
Please, Sign In to add comment