Detect when a food is eaten

How can I detect if a specific food has been eaten? Also, how can I give in an effect to the player that has eaten the food?
Continue to help post