Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function milk()
- if turtle.compareTo(16) == false then
- print("No bucket detected in slot 1")
- sleep(10)
- end
- if turtle.compareTo(16) then
- turtle.select(1)
- if turtle.place() == true then
- print("Milked cow. Waiting 4k ticks..")
- turtle.placeDown()
- sleep(155)
- else
- print("No cow detected.")
- sleep(10)
- return
- end
- else
- print("No place for liquids")
- print("Trying again in 5 seconds..")
- sleep(5)
- end
- end
- while true do
- milk()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement