Animals will lose interest if forced to jump up or fall down a block.
When you attract an animal's attention with food, they follow you. Unfortunately, when forced to jump or fall a block, they immediately lose interest. This must be a bug in their AI, or something along those lines? This works with all of the main animals: Sheep, Cow, Chicken, Pig. I haven't tried on Rabbits yet.