Yellow Pikmin special abilities:

-Lightning bolt immunity

-Reach higher and further when thrown due to being lighter.

-Use their stored electricity to emit light, even when held by the player on the main or off-hand

-Electric spark attack: When thrown on default mode or hitting something, yellow Pikmin create an electric spark that deals 2 damage in a 3 block radius, sets mobs on fire for 3 seconds, transforms pigs into zombie pigmen, villagers into witches, and charges creepers.


Yellow Pikmin are like a Swiss knife, having many tools for different situations,  using their light emission can be used as hand lamps, or thrown to briefly illuminate the path away, their lighter weight makes it easier to use them against flying enemies or attack any from further away.
But, their most complex trait is their spark attack, dealing area damage makes them better against clusters of enemies rather than big single targets, they can replace channeling tridents for certain things, and the leftover fire, while briefly weak in added damage, makes them able to turn random cows into perfectly cooked beef.