I have this problem on MCPE. And I know how it happens. When an animal is following me and it has to change his altitude (when it jumps on a block or jumps down a block ) it loses interest in food (hay for example). In 5 seconds it notices again that I have food in my hand, but it still loses interest when he changes altitude. I have to tell you that my house is on a hill and my fences are near the house.
I have this problem on MCPE. And I know how it happens. When an animal is following me and it has to change his altitude (when it jumps on a block or jumps down a block ) it loses interest in food (hay for example). In 5 seconds it notices again that I have food in my hand, but it still loses interest when he changes altitude. I have to tell you that my house is on a hill and my fences are near the house.