Summon a dark storm cloud in the sky that periodically fires animated, multi-pronged bolts of glowing cyan electricity down toward the ground.
Storms & LightningLightningDarkCyanBlueBlackCinematicMap MakingBoss FightBlock displaysSoundsLightning boltsRotation math13-20 commands
The Branching Thunderbolt command creation builds a custom storm cloud high above the stage that charges with sparks before firing jagged, multi-pronged bolts of electricity toward the ground. Unlike vanilla lightning, this effect draws its glowing path over several ticks using fast-moving marker entities that split off into smaller forks mid-air.
When the main bolt reaches the ground, it triggers a bright cyan burst and glowing shockwave particles at the impact point before resetting for the next strike.
/scoreboard objectives add c9_timer dummy/scoreboard players set #clock c9_timer 0/summon marker ~ ~ ~ {Tags:["c9_bolt","c9_root"]}/summon block_display ~-0.5 ~ ~-0.5 {Tags:["c9_bolt","c9_core"],block_state:{Name:"minecraft:sea_lantern"},Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15}}/scoreboard players add #clock c9_timer 1/execute if score #clock c9_timer matches 1..60 run particle large_smoke ~ ~19 ~ 4 0.8 4 0.01 25 force/execute if score #clock c9_timer matches 1..60 run particle electric_spark ~ ~18 ~ 3.5 0.5 3.5 0.3 20 force/execute if score #clock c9_timer matches 20 run summon marker ~-2 ~18 ~-1 {Tags:["c9_bolt","c9_main"]}/execute if score #clock c9_timer matches 20 run playsound minecraft:entity.lightning_bolt.thunder master @a ~ ~18 ~ 2 1.2/execute as @e[type=marker,tag=c9_main] at @s if block ~ ~-1.5 ~ air run tp @s ~0.2 ~-1.6 ~0.1/execute if score #clock c9_timer matches 22..29 as @e[type=marker,tag=c9_main] at @s run summon marker ~ ~ ~ {Tags:["c9_bolt","c9_branch"],Rotation:[45f,25f]}/execute if score #clock c9_timer matches 23..30 as @e[type=marker,tag=c9_main] at @s run summon marker ~ ~ ~ {Tags:["c9_bolt","c9_branch"],Rotation:[-65f,20f]}/execute as @e[type=marker,tag=c9_branch] at @s run scoreboard players add @s c9_timer 1/execute as @e[type=marker,tag=c9_branch,scores={c9_timer=1..6}] at @s run tp @s ^0.6 ^-0.9 ^0.7/execute as @e[type=marker,tag=c9_bolt] at @s unless entity @s[tag=c9_root] run particle dust_color_transition{from_color:[0.1,0.9,1.0],to_color:[1.0,1.0,1.0],scale:2.5} ~ ~ ~ 0.12 0.12 0.12 0 12 force/execute if score #clock c9_timer matches 32 at @e[type=marker,tag=c9_main] run particle flash{color:[0.3,0.9,1.0,1.0]} ~ ~1 ~ 0 0 0 0 1 force/execute if score #clock c9_timer matches 32..36 at @e[type=marker,tag=c9_main] run particle soul_fire_flame ~ ~0.5 ~ 1.5 0.4 1.5 0.15 40 force/execute if score #clock c9_timer matches 60.. run kill @e[type=marker,tag=c9_bolt,tag=!c9_root]/execute if score #clock c9_timer matches 60.. run scoreboard players set #clock c9_timer 0loop #3 Generates a dark cloud of <code>large_smoke</code> and <code>electric_spark</code> particles 19 blocks above the centre to act as the storm source.loop #7 Moves the main lightning marker downward by 1.6 blocks each tick with a slight horizontal offset until it nears the ground.loop #8 Spawns secondary branch markers with preset rotation angles along the path of the falling main bolt.loop #11 Pushes the branch markers outward and downward using local coordinates (<code>^ ^ ^</code>) for 6 ticks so they fork away from the main trunk.loop #12 Draws the thick cyan-to-white electric trail at every bolt and branch marker position using <code>dust_color_transition</code>.loop #13 Creates a bright RGBA-tinted <code>flash</code> particle and a burst of <code>soul_fire_flame</code> when the bolt strikes the ground at tick 32.


Recorded on our own test server: 50 frames at about 9.9 fps. Our image check saw: A dark particle cloud in the night sky shoots a branching trail of blue particles down onto a grassy platform, creating small cyan sparks around a glowing block on impact.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let a player trigger the thunderbolt where they are looking, replace the fixed ~ ~18 ~ summon coordinates at tick 20 with an /execute at @p anchored eyes positioned ^ ^ ^12 run summon marker ~ ~18 ~ {Tags:["c9_bolt","c9_main"]} command triggered by holding or using a custom item.
/kill @e[tag=c9_bolt]/scoreboard objectives remove c9_timerIn Java Edition 26.x, the flash particle requires an RGBA color array of 4 floats (red, green, blue, and alpha from 0.0 to 1.0) when passed as a list.
No, the bolt is built entirely with marker entities and visual particles, so it will not start fires or damage nearby mobs unless you add an /execute damage command at the impact point.
▶Pyroclastic Lightning Supercell DomeStorms & LightningHard21 cmds
▶Chrono-Stutter Lightning Freeze FrameStorms & LightningExpert22 cmds
▶Storm-Caller SpireStorms & LightningEasy23 cmds
▶Tempest Smite CallStorms & LightningEasy23 cmds
▶Cataclysmic Storm SimulatorStorms & LightningHard24 cmds