Command Block Tutorial #59: Lightning Rod Commands in Minecraft (1.16+)
In this video I'm starting off my return to the command block tutorial series with a electrifying one, which is a working lightning rod. I been meaning to find one that works for ages, but now I finally found it.
Commands:
1. Command Text or in Impulse Command Block:
/scoreboard objectives add playerHit minecraft.custom:minecraft.damage_dealt
2. Impulse Command Block:
/give @p minecraft:blaze_rod{display:{Name:"[{\"text\":\"Lightning\",\"color\":\"gold\",\"italic\":false},{\"text\":\" Rod\",\"color\":\"red\",\"italic\":false}]",Lore:["{\"text\":\"Lightning strikes on them!\",\"color\":\"gray\",\"italic\":false}"]},Unbreakable:1,HideFlags:7,Enchantments:[{id:vanishing_curse,lvl:1}]}
3. Repeating Command Block:
/execute at @a[nbt={SelectedItem:{id:"minecraft:blaze_rod",Count:1b,tag:{display:{Name:"[{\"text\":\"Lightning\",\"color\":\"gold\",\"italic\":false},{\"text\":\" Rod\",\"color\":\"red\",\"italic\":false}]",Lore:["{\"text\":\"Lightning strikes on them!\",\"color\":\"gray\",\"italic\":false}"]}}}}] run execute at @a[scores={playerHit=1..}] run execute at @e[nbt={HurtTime:10s}] run summon lightning_bolt
4. Chain Command Block:
/scoreboard players reset @a[scores={playerHit=1..}] playerHit
Music:
1. Gaming Sound FX:
* Monkeys Spinning Monkeys (Kevin MacLeod) - Gaming Background Music (HD):
https://www.youtube.com/watch?v=pr42a...
Other Videos By RedstoneKnightX
Other Statistics
Minecraft Statistics For RedstoneKnightX
RedstoneKnightX presently has 1,527,317 views for Minecraft across 384 videos, with His channel uploaded over 2 days worth of Minecraft videos. This is 85.45% of the total watchable video on RedstoneKnightX's YouTube channel.