Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. local errorcount = 0
  2. while 1 do
  3. local variety = 1
  4. for spaceNo = 1,variety do
  5. local status, data = turtle.inspect()
  6. if status == true then
  7. if data.metadata == 7 then
  8. print("7/7 Harvesting time!")
  9. turtle.dig()
  10. print ("Crop Harvested, planting number", spaceNo)
  11. turtle.select(spaceNo)
  12. if turtle.getItemCount(spaceNo) >= 2 then
  13. turtle.place()
  14. errorcount = 0
  15. else
  16. print("Not enough seeds, trying another slot")
  17. end
  18. else
  19. print("Not fully grown, Growth: ", data.metadata, "/7")
  20. end
  21. else
  22. errorcount = errorcount + 1
  23. if errorcount < 1 then
  24. print("Bugfix")
  25. turtle.dig()
  26. if turtle.getItemCount(spaceNo) >= 2 then
  27. turtle.place()
  28. else
  29. print("Not enough seeds, trying another slot")
  30. end
  31. end
  32. end
  33. end
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement