Tesla Coil Lightning Arc Spawner

Twin copper towers build up electric charges and fire jagged block-display lightning arcs across the floor to materialize charged creepers.

Java EditionMini-games & UtilitiesMedium24 commandsTested on a real 26.2 & 26.3 server
Cyan lightning arc jumping between two copper Tesla coils Download the GIF Video & GIF © www.9minecraft.net

Spawners & GeneratorsLightningTechnologyIndustrialCyanBlueOrangeMini-gameMap MakingAdventure MapBlock displaysSummoned mobsBlock building (fill/setblock/clone)SoundsLightning bolts21+ commands

This command creation builds a dark prismarine and deepslate testing platform flanked by two copper Tesla coils. As the coils charge up, swirling electric sparks and rising beacon hums fill the air around the copper terminals before a glowing block-display plasma bridge snaps between them.

At peak voltage, jagged cyan lightning bolts strike the center containment grate from both towers at once. The discharge calls down a real lightning bolt and materializes a glowing charged creeper right on the pad before venting steam and resetting for the next cycle.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tesla dummy
  2. /fill ~-6 ~ ~-3 ~6 ~ ~3 polished_deepslate
  3. /fill ~-2 ~ ~-2 ~2 ~ ~2 dark_prismarine
  4. /setblock ~ ~ ~ copper_grate
  5. /fill ~-5 ~1 ~-1 ~-3 ~1 ~1 cut_copper_slab[type=bottom]
  6. /fill ~3 ~1 ~-1 ~5 ~1 ~1 cut_copper_slab[type=bottom]
  7. /fill ~-4 ~1 ~ ~-4 ~6 ~ copper_block
  8. /fill ~4 ~1 ~ ~4 ~6 ~ copper_block
  9. /setblock ~-4 ~7 ~ sea_lantern
  10. /setblock ~4 ~7 ~ sea_lantern

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

  1. /execute unless entity @e[tag=c9_ctrl] run summon marker ~ ~1 ~ {Tags:["c9_ctrl"]}
  2. /scoreboard players add @e[tag=c9_ctrl] c9_tesla 1
  3. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 1..65 run particle electric_spark ~-4 ~7.5 ~ 0.6 0.6 0.6 0.2 8 force
  4. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 1..65 run particle electric_spark ~4 ~7.5 ~ 0.6 0.6 0.6 0.2 8 force
  5. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 30..65 run particle dust{color:[0.2,0.9,1.0],scale:1.6} ~ ~7.5 ~ 2.5 0.3 0.2 0 12 force
  6. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 20 run playsound block.beacon.ambient master @a ~ ~4 ~ 1.5 1.8
  7. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 45 run summon block_display ~-4 ~7.2 ~ {Tags:["c9_arc"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{translation:[0f,0f,-0.1f],left_rotation:[0f,0f,0f,1f],scale:[8f,0.2f,0.2f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 60 run summon block_display ~-4 ~7.2 ~ {Tags:["c9_arc"],Glowing:1b,glow_color_override:16777215,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[0f,0f,-0.12f],left_rotation:[0f,0f,0.782f,0.623f],scale:[8.2f,0.24f,0.24f],right_rotation:[0f,0f,0f,1f]}}
  9. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 60 run summon block_display ~4 ~7.2 ~ {Tags:["c9_arc"],Glowing:1b,glow_color_override:16777215,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[0f,0f,-0.12f],left_rotation:[0f,0f,-0.623f,0.782f],scale:[8.2f,0.24f,0.24f],right_rotation:[0f,0f,0f,1f]}}
  10. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 61 run kill @e[tag=c9_creeper]
  11. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 62 run summon lightning_bolt ~ ~1 ~
  12. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 62 run summon creeper ~ ~1 ~ {Tags:["c9_creeper"],powered:1b,NoAI:1b,Glowing:1b,PersistenceRequired:1b}
  13. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 72 run kill @e[tag=c9_arc]
  14. /execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 100.. run scoreboard players set @e[tag=c9_ctrl] c9_tesla 0

How it works

Frames from the test run

Tesla Coil Lightning Arc Spawner - frame 1Tesla Coil Lightning Arc Spawner - frame 2Tesla Coil Lightning Arc Spawner - frame 3

Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: Two copper Tesla coils charge and fire a cyan arc between their tops.

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 on a flat open area with at least 7 blocks of space in every direction and run the 10 setup commands in chat to build the deepslate platform and twin copper coils.
  2. Place a line of 14 repeating command blocks (or 1 repeating command block connected to 13 chain command blocks) underneath or beside the stage.
  3. Paste each of the 14 loop commands into the command blocks in order and set all of them to Always Active.
  4. Ensure every command runs relative to the center of the platform by wrapping them with execute positioned at the center copper grate coordinates.
  5. Watch the coils charge up every 5 seconds, bridge their arc, and strike the center pad to spawn a fresh charged creeper.

Use it with real players

To turn this into an active survival trap or farm defense, remove NoAI:1b from loop command 12 so the charged creepers can walk off the pad, or replace the timer increment in loop command 2 with /execute if entity @a[distance=..8] run scoreboard players add @e[tag=c9_ctrl] c9_tesla 1 so the coils only charge when a player steps near the platform.

Remove it again 5 commands

  1. /kill @e[tag=c9_arc]
  2. /kill @e[tag=c9_creeper]
  3. /kill @e[tag=c9_ctrl]
  4. /scoreboard objectives remove c9_tesla
  5. /fill ~-6 ~ ~-3 ~6 ~8 ~3 air

FAQ

Will the lightning bolt destroy the platform or start fires?

The platform is built out of non-flammable polished deepslate, dark prismarine, and copper blocks, and the previous creeper is removed one tick before the strike so it never explodes.

How can I change how fast the Tesla coils fire?

In the last loop command, change 100.. to a higher number like 200.. for a 10-second cooldown, or lower it to 75.. for rapid-fire lightning discharges.

Commands used

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

Similar creations

Join 9Minecraft News & Guides