Twin copper towers build up electric charges and fire jagged block-display lightning arcs across the floor to materialize charged creepers.
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.
/scoreboard objectives add c9_tesla dummy/fill ~-6 ~ ~-3 ~6 ~ ~3 polished_deepslate/fill ~-2 ~ ~-2 ~2 ~ ~2 dark_prismarine/setblock ~ ~ ~ copper_grate/fill ~-5 ~1 ~-1 ~-3 ~1 ~1 cut_copper_slab[type=bottom]/fill ~3 ~1 ~-1 ~5 ~1 ~1 cut_copper_slab[type=bottom]/fill ~-4 ~1 ~ ~-4 ~6 ~ copper_block/fill ~4 ~1 ~ ~4 ~6 ~ copper_block/setblock ~-4 ~7 ~ sea_lantern/setblock ~4 ~7 ~ sea_lantern/execute unless entity @e[tag=c9_ctrl] run summon marker ~ ~1 ~ {Tags:["c9_ctrl"]}/scoreboard players add @e[tag=c9_ctrl] c9_tesla 1/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/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/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/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/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]}}/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]}}/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]}}/execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 61 run kill @e[tag=c9_creeper]/execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 62 run summon lightning_bolt ~ ~1 ~/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}/execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 72 run kill @e[tag=c9_arc]/execute if score @e[tag=c9_ctrl,limit=1] c9_tesla matches 100.. run scoreboard players set @e[tag=c9_ctrl] c9_tesla 0loop #3 During the first 65 ticks of the cycle, <code>electric_spark</code> particles burst around the sea lantern terminals at the top of both copper pillars to show static buildup.loop #7 At tick 45, a stretched <code>block_display</code> using cyan stained glass with maximum brightness and a cyan <code>glow_color_override</code> bridges the 8-block gap between the two coils.loop #8 At tick 60, two angled sea lantern <code>block_display</code> beams use quaternion <code>left_rotation</code> values to shoot diagonally down from the top of each tower into the center copper grate.loop #12 At tick 62, right as the lightning bolt hits the grate, a creeper with <code>powered:1b</code> and <code>Glowing:1b</code> is summoned at the impact point while the previous creeper is cleared so entities never pile up.


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.
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.
/kill @e[tag=c9_arc]/kill @e[tag=c9_creeper]/kill @e[tag=c9_ctrl]/scoreboard objectives remove c9_tesla/fill ~-6 ~ ~-3 ~6 ~8 ~3 airThe 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.
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.
/execute/fill/kill/particle/playsound/scoreboard/setblock/summon
▶3D Conveyor Belt LoopSpawners & GeneratorsMedium26 cmds
▶Automated Conveyor AssemblySpawners & GeneratorsEasy24 cmds
▶Automated Conveyor FactorySpawners & GeneratorsEasy24 cmds
▶Automated Crop HarvesterSpawners & GeneratorsMedium24 cmds
▶Automated Factory Assembly LineSpawners & GeneratorsMedium24 cmds
▶Automated Glass Pane InstallerSpawners & GeneratorsEasy23 cmds