Invincibility Powerups

How do you make Invincibility Powerups?

Can you elaborate? It’s hard to make assumptions.

My first thought was an invincibility star from Super Mario Bros. Is that what you meant?

For a Mario-esque invincibility star thing: collision with star triggers sparkly animation in player and triggers a switch that turns off damage for a certain amount of time. Then when time runs out it switches damage back on and stops the animation.