Now you can!
With some simple tweaks of the code used for the cherries & the heart powerup, you can make other npcs generate when you collect a specified amount of another npc (such as other varieties of coins, or rupees). There's not much to it aside from making each use a unique variable, and of course your custom graphics. I've included two varities: apples, which generate a fireflower, and blueberries which generate an iceflower. Both generate a graphic which will float up from the bottom of the screen, and upon collection of it, spawn that powerup directly upon the players location.
MAJOR thanks to Megadood for the necessary importation of the code to make the npcs appear & float just like the heart. Feel free to use & reskin to your liking, please give credit to myself and Megadood.
Spoiler: show