Build a high-voltage arc barrier with two copper pillars that pulse with electric particles and vaporize any creature crossing the hazard zone.
Trails & PathsLightningTechnologyIndustrialBlueWhiteCyanMap MakingAdventure MapMini-gameSummoned mobsBlock building (fill/setblock/clone)SoundsLightning boltsRotation math21+ commands
Two industrial copper-and-blackstone pillars crackle to life on a rhythmic three-second cycle, charging their coils before unleashing three tiers of glowing electric beams across a glowing hazard strip.
During each high-voltage surge, any creature that steps between the pillars is struck by lightning damage, bursts into blue plasma flames, and vanishes in an instant.
/fill ~-6 ~-1 ~-2 ~6 ~-1 ~2 polished_deepslate/fill ~-4 ~-1 ~ ~4 ~-1 ~ sea_lantern/fill ~-6 ~ ~-1 ~-4 ~ ~1 polished_blackstone_bricks/fill ~4 ~ ~-1 ~6 ~ ~1 polished_blackstone_bricks/fill ~-5 ~1 ~ ~-5 ~4 ~ copper_block/fill ~5 ~1 ~ ~5 ~4 ~ copper_block/setblock ~-5 ~5 ~ lightning_rod/setblock ~5 ~5 ~ lightning_rod/scoreboard objectives add c9_arc dummy/summon marker ~ ~ ~ {Tags:["c9_ctrl"]}/scoreboard players add @e[tag=c9_ctrl,limit=1] c9_arc 1/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 60.. run scoreboard players set @e[tag=c9_ctrl,limit=1] c9_arc 0/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 1 unless entity @e[tag=c9_mob] run summon zombie ~ ~ ~-5 {Tags:["c9_mob"],DeathLootTable:"minecraft:empty",IsBaby:0b}/execute as @e[tag=c9_mob,nbt={DeathTime:0s}] at @s facing entity @e[tag=c9_ctrl,limit=1] feet run tp @s ^ ^ ^0.12/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 0..14 run particle electric_spark ~-5 ~3.2 ~ 0.35 1.8 0.35 0.08 8 force/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 0..14 run particle electric_spark ~5 ~3.2 ~ 0.35 1.8 0.35 0.08 8 force/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 12 run playsound minecraft:block.beacon.activate master @a ~ ~ ~ 0.7 1.8/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 12..47 run particle dust{color:[0.15,0.85,1.0],scale:1.6} ~ ~1.3 ~ 2.3 0.06 0.06 0 36 force/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 12..47 run particle dust{color:[0.55,0.98,1.0],scale:1.4} ~ ~2.8 ~ 2.3 0.06 0.06 0 36 force/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 14..45 run particle end_rod ~ ~5.1 ~ 2.1 0.16 0.08 0.01 16 force/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 12..47 run particle electric_spark ~ ~2.2 ~ 2.4 0.9 0.15 0.35 35 force/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 12..47 positioned ~-4 ~ ~-1 as @e[dx=8,dy=4,dz=2,nbt={HurtTime:0s,DeathTime:0s}] at @s run particle soul_fire_flame ~ ~1 ~ 0.35 0.6 0.35 0.15 40 force/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 12..47 positioned ~-4 ~ ~-1 as @e[dx=8,dy=4,dz=2,nbt={HurtTime:0s,DeathTime:0s}] at @s run playsound minecraft:entity.lightning_bolt.impact master @a ~ ~ ~ 0.9 1.6/execute if score @e[tag=c9_ctrl,limit=1] c9_arc matches 12..47 positioned ~-4 ~ ~-1 as @e[dx=8,dy=4,dz=2,nbt={HurtTime:0s,DeathTime:0s}] run damage @s 50 minecraft:lightning_boltsetup #9 Creates the <code>c9_arc</code> scoreboard objective used to track the three-second charge and discharge cycle.setup #10 Summons an invisible <code>marker</code> tagged <code>c9_ctrl</code> at the centre of the barrier to hold the timer score and act as a target anchor.loop #1 Advances the <code>c9_arc</code> timer by 1 every tick (20 ticks per second), while the next command resets it to 0 at tick 60.loop #3 Spawns a demo zombie tagged <code>c9_mob</code> at the start of a cycle if none is present, and the following command guides it toward the hazard zone.loop #8 Draws the lower cyan <code>dust</code> plasma beam across the gap during active surge ticks (<code>12..47</code>), paired with upper beams and crackling <code>electric_spark</code> particles.loop #14 Checks the 8x4x2 hazard volume between the pillars for living entities with <code>HurtTime:0s</code> and <code>DeathTime:0s</code> so the plasma burst, thunder sound, and 50 <code>minecraft:lightning_bolt</code> damage trigger cleanly once per target.


Recorded on our own test server: 32 frames at about 6.4 fps. Our image check saw: Two copper pillars on blackstone bases project three tiers of white and blue particle beams over a sea lantern strip, disintegrating zombies that step into the barrier.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To use this as a pure survival or base-defense barrier without demo zombies appearing automatically, simply omit or remove the 3rd and 4th loop commands (the c9_mob spawner and mover). The remaining loop commands will still charge, fire rhythmic electric arcs, and strike any mob or non-creative player that walks through the active hazard zone.
/kill @e[tag=c9_ctrl]/kill @e[tag=c9_mob]/scoreboard objectives remove c9_arc/fill ~-6 ~-1 ~-2 ~6 ~-1 ~2 grass_block/fill ~-6 ~ ~-2 ~6 ~5 ~2 airYes. The barrier charges from tick 0 to 11, fires lethal arcs from tick 12 to 47, and cools down from tick 48 to 59, creating a brief safe window if you time your sprint.
Edit the RGB array in the <code>dust{color:[R,G,B],scale:...}</code> particle commands using values from 0.0 to 1.0, and adjust the number <code>50</code> in the final <code>/damage</code> command.
/damage/execute/fill/particle/playsound/scoreboard/setblock/summon/tp
▶High-Voltage Arc PylonTrails & PathsMedium24 cmds
▶Aerodynamic Wind TunnelTrails & PathsMedium22 cmds
▶Automated Laser EngravingTrails & PathsMedium23 cmds
▶Automated Laser Mining RigTrails & PathsMedium24 cmds
▶Orbital Particle Excavation BeamTrails & PathsMedium23 cmds
▶Rolling Japanese Karakuri Tea AutomatonTrails & PathsExpert24 cmds