Minecraft wiki entry for Wheat, associated text: When wheat is held, it causes nearby cows, sheep, goats, and mooshrooms to follow the player, until either the player stops holding the wheat or goes too far away from the animal, thus leading them to lose interest.