Or, you can just make a GUI, that you can edit the potions/pellets what they should do, like:
Red Potion = addhealth 25
Purple Potion = Setplayertype horse
Green potion = addhealth 50
Orange potin = Setplayertype quakestyleplayer
If this is possible, then you won't have all events just for one pellets/potion