1.the lightning_bolt in some minecraft version is Lightningbolt just change it if can't use
2.many people make the same command like this but they will start lightning at the sky when you shoot out ,so you will kill yourself by lightning if you use they command,my command fix that
3 command block only!!!
4 this is not a one time command so use repeater to keep loading this command
5 if your computer easy to lag use /kill @e[type=arrow])
so you computer will not lag of keep lightning
6 you arrow will lightning when land