I have been trying to use command block to make custom named arrows that summon lightning at the spot they strike. What I want to do is shoot an arrow named 'vajra', and when it strikes the ground, lightning strikes the spot a few times. I want this to happen to only the arrows named 'vajra'. Whatever command I have been trying to use until now executes on all arrows. The nearest I got to executing a command on a custom named entity was on custom named mobs; I can cause lightning to summon on a custom name mob with a certain name, however, the same code does not work for arrows.
Can someone tell me the code to capture this task?