How does one make a lightning sword in vanilla Minecraft?

How does one make a lightning sword in vanilla Minecraft? - White and Black House Under Gray Clouds

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?



Best Answer

Late to the party, but you can use this. /execute at [player] run summon minecraft:lightning_bolt ~ ~ ~ Summons summons lightning bolt at player position. ~ ~ ~ is needed. You can also use @r, @a and others in place of [player]. Apparently you need the at part before the run part.




Pictures about "How does one make a lightning sword in vanilla Minecraft?"

How does one make a lightning sword in vanilla Minecraft? - Free stock photo of adult, alone, anti stress
How does one make a lightning sword in vanilla Minecraft? - Free stock photo of adult, alone, anti stress
How does one make a lightning sword in vanilla Minecraft? - Free stock photo of architecture, city, cityscape



How do you get lightning on sword in Minecraft?

How to Enter the Command
  • Open the Chat Window. The easiest way to run a command in Minecraft is within the chat window.
  • Type the Command. In this example, we are going to summon a lightning bolt in Minecraft Java Edition (PC/Mac) 1.18 with the following command: /summon lightning_bolt.




  • How to make a lightning sword in Minecraft




    More answers regarding how does one make a lightning sword in vanilla Minecraft?

    Answer 2

    Just use a few one is enchant (your name) (whatever enchantment you want) 1 then put a comparator then put a command block that says execute @a ~ ~ ~ tp @e[type=lightning_bolt] ^ ^ ^10 then put another that says summon lightning_bolt and put all of them to repeat IT IS POSSABLE

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Lance, Ivan Samkov, Ivan Samkov, Kelly