If you can manage to fix a stopper knot or a nut to the rope without it jamming in the pulley, you could make a stopper on the loop, the the cow would ride on a short sleeve on the rope that can slide freely but get caught on the nut. whenWhen the cow gets lifted to the top it would slide off the other side and then gets picked up again as the stopper knot comes around.