Nuka-Cola Vending Machine's last ability triggers whenever you sacrifice a Food for any reason, not just to activate a Food's activated ability.

Artwork
Loading artwork…
Nuka-Cola Vending Machine
Fallout · #137 · EN
Nonfoil—Foil—
Card rules
1,
: Create a Food token. (It's an artifact with "2,
, Sacrifice this token: You gain 3 life.")
Whenever you sacrifice a Food, create a tapped Treasure token. (It's an artifact with "
, Sacrifice this token: Add one mana of any color.")
Uncommon · Illustrated by Anthony Devine
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If an effect refers to a Food, it means any Food artifact, not just a Food artifact token. For example, if you sacrifice a nontoken Food artifact, such as Candy Trail from the Wilds of Eldraine set, Nuka-Cola Vending Machine's last ability will trigger.
Food is an artifact type. Even though it appears on some creatures, it's never a creature type.
Whatever you do, don't eat the delicious cards.
You can't sacrifice a Food to pay multiple costs. For example, you can't sacrifice a Food token to activate its own ability and also to activate Maraleaf Rider's ability.