A glowing central beacon generates an electrical storm of orbiting charged creepers and colorful particles that pulls wandering mobs into its deadly core.
Spirals & HelixesLightningSpaceTechnologyCyanPurpleGoldBoss FightPvPDecorationBlock displaysSummoned mobsBlock building (fill/setblock/clone)Lightning boltsRotation math21+ commands
The Magnetic Vortex Field transforms an active beacon into an autonomous electrical storm. Glowing charged creepers orbit the beam in a double helix, painting thick ribbons of cyan, gold, and purple plasma through the night air while lightning strikes the beacon's crown.
Any mob that wanders within sixteen blocks is lifted off its feet and dragged along a spiral trajectory right into the pressurized core, where electric sparks finish it off.
/scoreboard objectives add c9_tick dummy/fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:iron_block/setblock ~ ~ ~ minecraft:beacon/setblock ~ ~1 ~ minecraft:cyan_stained_glass/summon minecraft:marker ~ ~1 ~ {Tags:["c9_core"],Rotation:[0f,0f]}/summon minecraft:block_display ~ ~2.5 ~ {Tags:["c9_core_disp"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0.353f,0.353f,0.146f,0.853f],scale:[1.2f,1.2f,1.2f],translation:[-0.6f,-0.6f,-0.6f]}}/summon minecraft:creeper ~4 ~2 ~ {Tags:["c9_orb","c9_orb1"],powered:1b,NoAI:1b,Invulnerable:1b,Silent:1b,Glowing:1b}/summon minecraft:creeper ~-4 ~3 ~ {Tags:["c9_orb","c9_orb2"],powered:1b,NoAI:1b,Invulnerable:1b,Silent:1b,Glowing:1b}/summon minecraft:creeper ~ ~4 ~4 {Tags:["c9_orb","c9_orb3"],powered:1b,NoAI:1b,Invulnerable:1b,Silent:1b,Glowing:1b}/scoreboard players add #timer c9_tick 1/execute if score #timer c9_tick matches 100.. run scoreboard players set #timer c9_tick 0/execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~12 ~/execute as @e[tag=c9_core_disp] at @s run tp @s ~ ~ ~ ~-8 ~/execute at @e[tag=c9_core] rotated ~ 0 run tp @e[tag=c9_orb1,limit=1] ^ ^1.2 ^4.5 ~12 ~/execute at @e[tag=c9_core] rotated ~120 0 run tp @e[tag=c9_orb2,limit=1] ^ ^2.2 ^3.8 ~12 ~/execute at @e[tag=c9_core] rotated ~240 0 run tp @e[tag=c9_orb3,limit=1] ^ ^3.2 ^3.0 ~12 ~/execute at @e[tag=c9_orb] run particle minecraft:dust_color_transition{from_color:[0.0,0.9,1.0],to_color:[0.5,0.0,1.0],scale:1.8} ~ ~0.9 ~ 0.15 0.15 0.15 0 4 force/execute at @e[tag=c9_orb] run particle minecraft:electric_spark ~ ~1 ~ 0.25 0.4 0.25 0.05 3 force/execute at @e[tag=c9_core] rotated ~45 0 run particle minecraft:dust{color:[1.0,0.85,0.2],scale:1.5} ^ ^0.5 ^6 0.2 0.2 0.2 0 3 force/execute if score #timer c9_tick matches 1 if entity @e[tag=c9_victim,distance=..20] unless entity @e[tag=c9_victim,distance=..20,limit=6] run summon minecraft:husk ~ ~1 ~ {Tags:["c9_victim"],Glowing:1b}/execute if score #timer c9_tick matches 1 unless entity @e[tag=c9_victim,distance=..20] run summon minecraft:husk ~10 ~ ~ {Tags:["c9_victim"],Glowing:1b}/execute as @e[tag=c9_victim] at @s facing entity @e[tag=c9_core,limit=1] feet run tp @s ^0.18 ^0.06 ^0.24 ~8 ~/execute at @e[tag=c9_core] as @e[tag=c9_victim,distance=..2.8] at @s run damage @s 3 minecraft:lightning_bolt/execute if score #timer c9_tick matches 50 at @e[tag=c9_core] run summon minecraft:lightning_bolt ~ ~2 ~loop #3 Spins the invisible <code>c9_core</code> marker 12 degrees per tick so its facing angle acts as a master rotor for the whole vortex.loop #5 Uses local coordinates (<code>^ ^1.2 ^4.5</code>) relative to the spinning core marker to lock the first charged creeper into a smooth circular orbit.loop #8 Draws a thick cyan-to-purple gradient trail behind every orbiting charged creeper using <code>dust_color_transition</code>.loop #13 Faces each tagged victim toward the central core and steps it forward (<code>^0.24</code>) and sideways (<code>^0.18</code>) simultaneously, creating an inward spiral pull.loop #14 Deals continuous lightning damage to any pulled mob that reaches the inner 2.8-block danger zone around the core.


Recorded on our own test server: 56 frames at about 9.3 fps. Our image check saw: Glowing charged creepers orbit an active beacon at night surrounded by cyan, purple, and gold particle effects while pulling mobs into the center.
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 trap against any wild monster in your world instead of only the demo husks, replace tag=c9_victim in the last three loop commands with type=!player,tag=!c9_core,tag=!c9_core_disp,tag=!c9_orb,distance=..15 and remove the two husk-summoning loop commands.
/kill @e[tag=c9_core]/kill @e[tag=c9_core_disp]/kill @e[tag=c9_orb]/kill @e[tag=c9_victim]/fill ~-1 ~-1 ~-1 ~1 ~2 ~1 minecraft:air/fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:grass_block/scoreboard objectives remove c9_tickThey are summoned with NoAI:1b and Invulnerable:1b, which disables their fuse AI and prevents lightning strikes from killing them.
Increase the forward local coordinate (^0.24) in loop command 13 to pull mobs faster, and raise the distance filter if you add a custom radius.
▶Spinning Double Helix DNA TowerSpirals & HelixesMedium19 cmds
▶Dimensional Portal GateSpirals & HelixesMedium24 cmds
▶Harmonic Ribbon EmitterSpirals & HelixesMedium21 cmds
▶Living Sine Wave RibbonSpirals & HelixesMedium19 cmds
▶Mystic Ender Pearl AnimationSpirals & HelixesEasy18 cmds
▶Prismatic Comet Trail Command CreationSpirals & HelixesEasy22 cmds