Magnetic Vortex Field

A glowing central beacon generates an electrical storm of orbiting charged creepers and colorful particles that pulls wandering mobs into its deadly core.

Java EditionParticle ArtMedium24 commandsTested on a real 26.2 & 26.3 server
Glowing charged creepers and colorful particles orbit an active Minecraft beacon, drawing nearby mobs into the center. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:iron_block
  3. /setblock ~ ~ ~ minecraft:beacon
  4. /setblock ~ ~1 ~ minecraft:cyan_stained_glass
  5. /summon minecraft:marker ~ ~1 ~ {Tags:["c9_core"],Rotation:[0f,0f]}
  6. /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]}}
  7. /summon minecraft:creeper ~4 ~2 ~ {Tags:["c9_orb","c9_orb1"],powered:1b,NoAI:1b,Invulnerable:1b,Silent:1b,Glowing:1b}
  8. /summon minecraft:creeper ~-4 ~3 ~ {Tags:["c9_orb","c9_orb2"],powered:1b,NoAI:1b,Invulnerable:1b,Silent:1b,Glowing:1b}
  9. /summon minecraft:creeper ~ ~4 ~4 {Tags:["c9_orb","c9_orb3"],powered:1b,NoAI:1b,Invulnerable:1b,Silent:1b,Glowing:1b}

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

  1. /scoreboard players add #timer c9_tick 1
  2. /execute if score #timer c9_tick matches 100.. run scoreboard players set #timer c9_tick 0
  3. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~12 ~
  4. /execute as @e[tag=c9_core_disp] at @s run tp @s ~ ~ ~ ~-8 ~
  5. /execute at @e[tag=c9_core] rotated ~ 0 run tp @e[tag=c9_orb1,limit=1] ^ ^1.2 ^4.5 ~12 ~
  6. /execute at @e[tag=c9_core] rotated ~120 0 run tp @e[tag=c9_orb2,limit=1] ^ ^2.2 ^3.8 ~12 ~
  7. /execute at @e[tag=c9_core] rotated ~240 0 run tp @e[tag=c9_orb3,limit=1] ^ ^3.2 ^3.0 ~12 ~
  8. /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
  9. /execute at @e[tag=c9_orb] run particle minecraft:electric_spark ~ ~1 ~ 0.25 0.4 0.25 0.05 3 force
  10. /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
  11. /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}
  12. /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}
  13. /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 ~
  14. /execute at @e[tag=c9_core] as @e[tag=c9_victim,distance=..2.8] at @s run damage @s 3 minecraft:lightning_bolt
  15. /execute if score #timer c9_tick matches 50 at @e[tag=c9_core] run summon minecraft:lightning_bolt ~ ~2 ~

How it works

Frames from the test run

Magnetic Vortex Field - frame 1Magnetic Vortex Field - frame 2Magnetic Vortex Field - frame 3

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.

Build it in your world

  1. Enable cheats in your world and give yourself a command block with /give @s command_block.
  2. Clear a flat area at least 25x25 blocks wide and stand where you want the center of the beacon vortex to be.
  3. Run each command from the Setup list in chat in order to build the beacon base, floating sea lantern core, and three orbiting charged creepers.
  4. Place a stack or line of 15 Repeating Command Blocks (set to Always Active) underneath or beside the platform.
  5. Paste one command from the Loop list into each repeating command block; if they are not at the exact center, wrap their positions or place them right under the beacon.
  6. Watch the charged creepers spin into orbit while newly spawned husks get dragged into the electrical storm.

Use it with real players

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.

Remove it again 7 commands

  1. /kill @e[tag=c9_core]
  2. /kill @e[tag=c9_core_disp]
  3. /kill @e[tag=c9_orb]
  4. /kill @e[tag=c9_victim]
  5. /fill ~-1 ~-1 ~-1 ~1 ~2 ~1 minecraft:air
  6. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:grass_block
  7. /scoreboard objectives remove c9_tick

FAQ

Why don't the orbiting charged creepers explode when mobs get close?

They are summoned with NoAI:1b and Invulnerable:1b, which disables their fuse AI and prevents lightning strikes from killing them.

How can I make the magnetic pull wider or stronger?

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.

Commands used

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

Similar creations

Join 9Minecraft News & Guides