Branching Thunderbolt

Summon a dark storm cloud in the sky that periodically fires animated, multi-pronged bolts of glowing cyan electricity down toward the ground.

Java EditionSky & WeatherHard19 commandsTested on a real 26.2 & 26.3 server
A custom blue particle lightning bolt strikes the ground from a dark storm cloud at night. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 4 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #clock c9_timer 0
  3. /summon marker ~ ~ ~ {Tags:["c9_bolt","c9_root"]}
  4. /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}}

2. Loop - one repeating command block each (Always Active) 15 commands

  1. /scoreboard players add #clock c9_timer 1
  2. /execute if score #clock c9_timer matches 1..60 run particle large_smoke ~ ~19 ~ 4 0.8 4 0.01 25 force
  3. /execute if score #clock c9_timer matches 1..60 run particle electric_spark ~ ~18 ~ 3.5 0.5 3.5 0.3 20 force
  4. /execute if score #clock c9_timer matches 20 run summon marker ~-2 ~18 ~-1 {Tags:["c9_bolt","c9_main"]}
  5. /execute if score #clock c9_timer matches 20 run playsound minecraft:entity.lightning_bolt.thunder master @a ~ ~18 ~ 2 1.2
  6. /execute as @e[type=marker,tag=c9_main] at @s if block ~ ~-1.5 ~ air run tp @s ~0.2 ~-1.6 ~0.1
  7. /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]}
  8. /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]}
  9. /execute as @e[type=marker,tag=c9_branch] at @s run scoreboard players add @s c9_timer 1
  10. /execute as @e[type=marker,tag=c9_branch,scores={c9_timer=1..6}] at @s run tp @s ^0.6 ^-0.9 ^0.7
  11. /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
  12. /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
  13. /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
  14. /execute if score #clock c9_timer matches 60.. run kill @e[type=marker,tag=c9_bolt,tag=!c9_root]
  15. /execute if score #clock c9_timer matches 60.. run scoreboard players set #clock c9_timer 0

How it works

Frames from the test run

Branching Thunderbolt - frame 1Branching Thunderbolt - frame 2Branching Thunderbolt - frame 3

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.

Build it in your world

  1. Open a flat world in Java Edition 26.2 or newer and enable command blocks.
  2. Stand at the spot where you want the lightning to strike and run the 4 setup commands in chat.
  3. Place a repeating command block set to Always Active nearby and paste the first loop command into it.
  4. Chain the remaining loop commands using Chain Command Blocks set to Always Active and Unconditional.
  5. Set the time to night with /time set midnight so the glowing cyan arcs and flash effects stand out clearly.

Use it with real players

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.

Remove it again 2 commands

  1. /kill @e[tag=c9_bolt]
  2. /scoreboard objectives remove c9_timer

FAQ

Why did the flash particle need four numbers in its color list?

In 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.

Will this lightning burn builds or damage entities?

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.

Commands used

/execute/kill/particle/playsound/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides