Plazter

Seeds

May 30th, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. function check()
  2. if turtle.getItemCount(1) < 1 then
  3. turtle.select(1)
  4. turtle.turnLeft()
  5. turtle.suck()
  6. turtle.turnRight()
  7. end
  8. end
  9.  
  10. function plant()
  11. --vvvvvvvvvvvturtle.dig()
  12. turtle.select(1)
  13. turtle.place()
  14. end
  15.  
  16. function bonemeal()
  17. turtle.select(16)
  18. turtle.place()
  19. turtle.select(1)
  20. end
  21.  
  22. function drop()
  23. for i = 2,15 do
  24. if turtle.getItemCount(i) > 0 then
  25. turtle.select(i)
  26. turtle.dropDown()
  27. end
  28. end
  29. end
  30.  
  31. -- Main --
  32. while true do
  33. turtle.select(16)
  34. turtle.suckUp()
  35. check()
  36. for i = 1,63 do
  37. check()
  38. turtle.dig()
  39. plant()
  40. bonemeal()
  41. turtle.suck()
  42. turtle.suck()
  43.  
  44. end
  45. drop()
  46. sleep(1)
  47. end
Advertisement
Add Comment
Please, Sign In to add comment