I've been doing some research on making lightning swords or items, but the only working things seem to be server plugins. I'm trying to achieve the same effect with command blocks in Minecraft 1.8.8.
There probably is a way using scoreboard, execute and summon commands. The thing I'm trying, however, is to make the lightningBolt entity spawn where I click. Does anyone know how to do this?
/execute @e[type=Arrow] summon LightningBolt
(although those aren't the correct entity names). This will also summon lightning until the arrow despawns (i.e. never if fired by a player) so you'd need to work out how to kill the arrow.