How do I make a Lightning Bow in vanilla Minecraft?

I'm trying to make a setup with command blocks that summons lightning at the location of a shot arrow. The setup should recognize the arrow that is shot or the bow that is used by its name or another property, so that lightning only strikes at that specific arrow.
Also, the lightning should only strike once when the arrow hits the ground. I know this is somehow possible with scoreboard, but I'm no good with that. Does anyone know how to make a Lightning Bow in vanilla Minecraft?
Best Answer
1.9 command
Repeat command block (always active):
/testfor @e[type=Arrow] {inGround:1b}
Chain command block (always active, conditional):
/execute @e[type=Arrow] ~ ~ ~ /summon LightningBolt
Chain command block (always active, conditional):
/kill @e[type=Arrow]
Pictures about "How do I make a Lightning Bow in vanilla Minecraft?"



How do you make a lightning weapon in Minecraft?
You can summon a lightning bolt whenever you want using a cheat (game command) in Minecraft. This is done using the /summon command. Lightning bolts can be used to turn mobs into witches, zombie pigmen, or charged creepers.How to Make a Lightning Bow in Minecraft Java 1.18.1!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Lance, Kelly, Brett Jordan, Brett Jordan