Procedural Arc Lightning & Tesla Coil

Build a glowing copper Tesla coil that charges an overhead storm cloud and fires jagged, branching bolts of custom plasma lightning across the arena.

Java EditionSky & WeatherHard22 commandsTested on a real 26.2 & 26.3 server
A copper Tesla coil shoots cyan plasma particles upward into a glowing purple storm cloud. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 8 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 polished_deepslate
  3. /fill ~-1 ~ ~-1 ~1 ~ ~1 chiseled_copper
  4. /setblock ~ ~1 ~ copper_bulb[lit=true]
  5. /fill ~ ~2 ~ ~ ~4 ~ waxed_copper_grate
  6. /setblock ~ ~5 ~ lightning_rod
  7. /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]}}
  8. /summon marker ~ ~17 ~ {Tags:["c9_all","c9_cloud"]}

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

  1. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~12 ~
  2. /execute at @e[tag=c9_core] run particle electric_spark ~ ~ ~ 0.8 0.8 0.8 0.3 10 force
  3. /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
  4. /execute at @e[tag=c9_cloud] run particle campfire_cosy_smoke ~ ~ ~ 5.5 0.8 5.5 0.005 18 force
  5. /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
  6. /scoreboard players add #clock c9_t 1
  7. /execute if score #clock c9_t matches 16.. run scoreboard players set #clock c9_t 0
  8. /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
  9. /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]}
  10. /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]}
  11. /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]}
  12. /execute as @e[tag=c9_arc] at @s run tp @s ^ ^ ^1.4 ~28 ~7
  13. /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
  14. /execute at @e[tag=c9_arc] run particle electric_spark ~ ~ ~ 0.6 0.6 0.6 0.25 18 force

How it works

Frames from the test run

Procedural Arc Lightning & Tesla Coil - frame 1Procedural Arc Lightning & Tesla Coil - frame 2Procedural Arc Lightning & Tesla Coil - frame 3

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.

Build it in your world

  1. Stand at the center of a flat open area and run each command from the Setup list in chat.
  2. Verify that the copper Tesla coil structure, glowing beacon core, and overhead cloud marker are in place.
  3. Place 14 Repeating Command Blocks set to Always Active near your stage (or connect 1 Repeating block into 13 Chain blocks).
  4. Paste one Loop command into each command block in order.
  5. Set the time to night with /time set midnight so the glowing cyan plasma bolts and storm cloud stand out clearly.

Use it with real players

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.

Remove it again 4 commands

  1. /kill @e[tag=c9_all]
  2. /scoreboard objectives remove c9_t
  3. /fill ~-2 ~ ~-2 ~2 ~6 ~2 air
  4. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 grass_block

FAQ

Why use area_effect_cloud entities for the lightning arcs instead of armor stands?

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

Can I change the color of the plasma bolts?

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.

Commands used

/execute/fill/particle/playsound/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides