Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local variety = 1
- local errorcount = 0
- while 1 do
- for spaceNo = 1,variety do
- if turtle.getItemCount(spaceNo) >= 2 then
- while 1 do
- local status, data = turtle.inspect()
- if status == true then
- if data.metadata == 7 then
- print("7/7 Harvesting time!")
- turtle.dig()
- print ("Crop Harvested, planting number", spaceNo)
- turtle.select(spaceNo)
- turtle.place()
- errorcount = 0
- turtle.select(variety + 1)
- turtle.dropDown()
- turtle.select(spaceNo)
- break
- else
- print("Not fully grown, Growth: ", data.metadata, "/7")
- end
- else
- errorcount = errorcount + 1
- if errorcount < variety then
- print("Bugfix")
- turtle.dig()
- turtle.select(spaceNo)
- turtle.place()
- end
- end
- end
- else
- print("Not enough seeds, trying another slot")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement