TKArchie

Untitled

May 20th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. function depositWheat()
  2. turtle.select(4)
  3. turtle.drop()
  4. turtle.turnLeft()
  5. end
  6.  
  7. function Bonemeal()
  8. turtle.select(2)
  9. turtle.suck()
  10. turtle.turnLeft()
  11. end
  12.  
  13. function Seeds()
  14. turtle.select(1)
  15. turtle.suck()
  16. turtle.turnLeft()
  17. end
  18.  
  19. function check_Bonemeal()
  20. turtle.select(2)
  21. if turtle.getItemCount(2) == 1 then
  22. turtle.suck()
  23. turtle.drop(turtle.getItemCount(2)-1)
  24. turtle.turnLeft()
  25. else
  26. turtle.turnLeft()
  27. end
  28. end
  29.  
  30. function check_Seeds()
  31. turtle.select(1)
  32. if turtle.getItemCount(1) == 1 then
  33. turtle.suck()
  34. turtle.drop(turtle.getItemCount(1)-1)
  35. turtle.turnLeft()
  36. else
  37. turtle.turnLeft()
  38. end
  39. end
  40.  
  41. function Harvest()
  42. turtle.dig()
  43. turtle.select(1)
  44. turtle.place()
  45. turtle.select(2)
  46. turtle.place()
  47. turtle.dig()
  48. turtle.turnLeft()
  49. end
  50.  
  51. Harvest()
  52. turtle.turnLeft()
  53. Bonemeal()
  54. Seeds()
  55. while true do
  56. Harvest()
  57. depositWheat()
  58. check_Bonemeal()
  59. check_Seeds()
  60. end
Advertisement
Add Comment
Please, Sign In to add comment