Build a glowing copper Tesla coil that charges an overhead storm cloud and fires jagged, branching bolts of custom plasma lightning across the arena.
Storms & LightningLightningTechnologyIndustrialCyanPurpleOrangeDecorationMap MakingBoss FightItem displaysBlock building (fill/setblock/clone)SoundsLightning boltsRotation math21+ commands
Vanilla Minecraft lightning is always the same vertical bolt, but with command blocks you can generate procedural arc lightning that forks and zigzags through the air. This creation constructs a glowing copper Tesla coil at the center of the stage that charges an overhead storm cloud with cyan and purple plasma.
Every second, both the storm cloud and the coil fire custom plasma tracers that randomly jaggedly step through the sky, leaving behind glowing cyan-to-white particle trails, electric sparks, and scorch bursts when they strike the ground.
/scoreboard objectives add c9_t dummy/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 polished_deepslate/fill ~-1 ~ ~-1 ~1 ~ ~1 chiseled_copper/setblock ~ ~1 ~ copper_bulb[lit=true]/fill ~ ~2 ~ ~ ~4 ~ waxed_copper_grate/setblock ~ ~5 ~ lightning_rod/summon item_display ~ ~5.5 ~ {Tags:["c9_all","c9_core"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:beacon"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.3f,1.3f,1.3f]}}/summon marker ~ ~17 ~ {Tags:["c9_all","c9_cloud"]}/execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~12 ~/execute at @e[tag=c9_core] run particle electric_spark ~ ~ ~ 0.8 0.8 0.8 0.3 10 force/execute at @e[tag=c9_core] run particle dust_color_transition{from_color:[0.0,1.0,1.0],to_color:[1.0,1.0,1.0],scale:2.2} ~ ~5.5 ~ 0.25 4.5 0.25 0 25 force/execute at @e[tag=c9_cloud] run particle campfire_cosy_smoke ~ ~ ~ 5.5 0.8 5.5 0.005 18 force/execute at @e[tag=c9_cloud] run particle dust_color_transition{from_color:[0.1,0.5,1.0],to_color:[0.7,0.2,1.0],scale:3.5} ~ ~-0.8 ~ 5 0.7 5 0 30 force/scoreboard players add #clock c9_t 1/execute if score #clock c9_t matches 16.. run scoreboard players set #clock c9_t 0/execute if score #clock c9_t matches 1 at @e[tag=c9_cloud] run playsound entity.lightning_bolt.thunder master @a ~ ~ ~ 1.5 1.2/execute if score #clock c9_t matches 1 at @e[tag=c9_cloud] run summon area_effect_cloud ~ ~-1 ~ {Tags:["c9_all","c9_arc"],Duration:13,Radius:0f,Rotation:[45f,60f]}/execute if score #clock c9_t matches 6 at @e[tag=c9_cloud] run summon area_effect_cloud ~ ~-1 ~ {Tags:["c9_all","c9_arc"],Duration:13,Radius:0f,Rotation:[195f,55f]}/execute if score #clock c9_t matches 11 at @e[tag=c9_core] run summon area_effect_cloud ~ ~ ~ {Tags:["c9_all","c9_arc"],Duration:11,Radius:0f,Rotation:[300f,-30f]}/execute as @e[tag=c9_arc] at @s run tp @s ^ ^ ^1.4 ~28 ~7/execute at @e[tag=c9_arc] run particle dust_color_transition{from_color:[0.0,1.0,1.0],to_color:[1.0,1.0,1.0],scale:2.8} ~ ~ ~ 0.45 0.45 0.45 0 35 force/execute at @e[tag=c9_arc] run particle electric_spark ~ ~ ~ 0.6 0.6 0.6 0.25 18 forcesetup #7 Summons a glowing cyan <code>item_display</code> showing a beacon block at the tip of the Tesla coil to act as the spinning energy core.loop #3 Draws a vertical plasma feed beam from the Tesla coil core up into the storm cloud using <code>dust_color_transition</code> particles.loop #9 Every 16 ticks, summons short-lived <code>area_effect_cloud</code> entities pitched downward from the storm cloud to trace out lightning paths.loop #12 Steps each lightning tracer forward using local coordinates (<code>^ ^ ^1.4</code>) while rotating its yaw and pitch to create a sharp helical arc.loop #13 Renders thick cyan-to-white plasma particles and bright electric sparks along every step of the moving arc tracers.


Recorded on our own test server: 54 frames at about 9.0 fps. Our image check saw: A copper Tesla coil topped with a beacon emits glowing cyan particles upward into a purple and blue particle storm cloud at night.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To turn this into a player-cast lightning weapon, replace at @e[tag=c9_core] in Loop command 10 with as @a[nbt={SelectedItem:{id:"minecraft:blaze_rod"}}] at @s anchored eyes positioned ^ ^ ^1 and remove the pitch override in Rotation so the arc fires in the direction the player is looking.
/kill @e[tag=c9_all]/scoreboard objectives remove c9_t/fill ~-2 ~ ~-2 ~2 ~6 ~2 air/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 grass_blockAn area_effect_cloud has a built-in Duration tag that automatically despawns the entity after a set number of ticks, preventing entity buildup without needing extra cleanup commands.
Yes! Edit the RGB arrays inside from_color and to_color in the dust_color_transition particle commands. Values range from 0.0 to 1.0 for red, green, and blue.
/execute/fill/particle/playsound/scoreboard/setblock/summon/tp
▶Jacob's Ladder Rising Arc SkyStorms & LightningMedium26 cmds
▶Static Electricity Styrofoam Cloud ClingStorms & LightningMedium25 cmds
▶Storm-Caller SpireStorms & LightningEasy23 cmds
▶Thunder Curtain Sky Defense TowerStorms & LightningEasy20 cmds
▶Orbital Ion Cannon StrikeStorms & LightningMedium21 cmds
▶Fraying Rope Bridge Sky CollapseStorms & LightningHard24 cmds