Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- -- Get milk
- turtle.place()
- -- turn and place milk
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.drop()
- os.sleep(5)
- -- Suck out all of the items
- while not turtle.suck() do
- end
- while turtle.suck() do
- end
- -- Place all that is not a bucket
- local bucket_id = 0
- for i = 1, 16 do
- turtle.select(i)
- if turtle.getItemDetail(i) ~= nil then
- if not string.match(turtle.getItemDetail(i).name, "bucket") then
- turtle.drop()
- else
- bucket_id = i
- end
- end
- end
- -- Turn back to cow
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(bucket_id)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement