Smoke bomb commans

I have looked for a tutorial on a smoke bomb that makes it so that when i snowball in named something and thrown it creates a smoke cloud and gives the player invisability but all the ones i find are bedrock.
Continue to help post