I was gonna do a battle with my friends with commands when in my head I thought of a command that will summon a lightning and arrow on a snowball named 'h' I did the command
Repeating Command Block 1: execute at @e[type=snowball,name=h] run summon lightning_bolt
Repeating Command Block 2: execute at @e[type=snowball,name=h] run summon arrow
It worked for like, a minute and when I actually tried it on my friend but it worked just like a regular snowball, the 'Previous Output' on the command block(s) said nothing, I really don't know if anything is wrong, might be because of my internet or the world glitched, please help me ;-;| version is Java 1.16.5 Optifine (don't really know if that will help but you never know)