From the Super Mario Wiki
Li'l Sparkies are small sparks that travel along platforms, first appearing in Super Mario World. In the latest games however, they seem to be almost completely replaced by Amps, an unlikely relative with similar traits and behavior.
Super Mario series
Super Mario World
They have the same immunities as Boos (i.e. invincible to almost everything). Additionally, Big Sparkies (usually referred to as Hotheads) could be found in Bowser's Castle.
Super Mario Advance 4: Super Mario Bros. 3
A Li'l Sparky is found in the E-Reader stage "Swinging Bars of Doom" in Super Mario Advance 4: Super Mario Bros. 3. Unlike in Super Mario World, it can be defeated by Statue Mario's stomp or by Hammers thrown by Hammer Mario.
In Paper Mario, a Li'l Sparky named Watt was imprisoned and tortured by the Big Lantern Ghost. After Mario defeats the Lantern Ghost, Watt joins Mario's party, making her the first playable Li'l Sparky. Other members of her species may be contained in the lamps of the Lantern Ghost.
Mario and Luigi: Superstar Saga
They make a small cameo in a pseudo-sidescrolling level to reach a Monty Mole. If Luigi is attacked by them, he will get knocked back to the beginning.
Super Princess Peach
They return once again in the game Super Princess Peach, appearing in Shriek Mansion and Bowser's Villa, and are invincible to everything Peach can do.
Notable Li'l Sparkies
Names in other languages
||From "luccicare", to sparkle