Build a dynamic magnetic field simulation in vanilla Minecraft using display entities, particle arcs, and opposing polar cores that pull and fling metallic debris.
Machines & MechanismsTechnologyIndustrialRedBlueOrangeLearningDecorationBlock displaysItem displaysArmor standsBlock building (fill/setblock/clone)Rotation math21+ commands
Two glowing magnetic cores—one North Pole in red and one South Pole in blue—orbit a central pedestal while generating an invisible force field. Metallic debris made of iron, copper, and anvils gets pulled out of the ground, orbits the cores in a figure-eight pattern, and occasionally gets flung across the stage when the magnetic polarity reverses.
This creation uses block_display entities coupled with dynamic vector movement and scoreboard timers to simulate magnetic attraction, orbital velocity, and sudden electromagnetic bursts without any mods.
/scoreboard objectives add c9_mag dummy/fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 polished_deepslate/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 copper_block/setblock ~ ~-1 ~ lodestone/summon armor_stand ~ ~4 ~ {Invisible:1b,NoGravity:1b,Marker:1b,Tags:["c9_mag","c9_center"]}/summon block_display ~ ~4 ~ {Tags:["c9_mag","c9_pole_n"],Glowing:1b,glow_color_override:16724787,block_state:{Name:"minecraft:redstone_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.3f,1.3f,1.3f],translation:[-0.65f,-0.65f,-0.65f]}}/summon block_display ~ ~4 ~ {Tags:["c9_mag","c9_pole_s"],Glowing:1b,glow_color_override:3368703,block_state:{Name:"minecraft:lapis_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.3f,1.3f,1.3f],translation:[-0.65f,-0.65f,-0.65f]}}/summon item_display ~ ~4 ~ {Tags:["c9_mag","c9_core_ring"],Glowing:1b,glow_color_override:16755200,item:{id:"minecraft:heavy_core",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.8f,1.8f],translation:[0f,0f,0f]}}/scoreboard players add #tick c9_mag 1/execute if score #tick c9_mag matches 160.. run scoreboard players set #tick c9_mag 0/execute as @e[tag=c9_center] at @s run tp @s ~ ~ ~ ~4.5 ~/execute at @e[tag=c9_center] run tp @e[tag=c9_pole_n] ^4.5 ^ ^/execute at @e[tag=c9_center] run tp @e[tag=c9_pole_s] ^-4.5 ^ ^/execute at @e[tag=c9_center] rotated ~ 0 run tp @e[tag=c9_core_ring] ~ ~ ~ ~9 ~/execute at @e[tag=c9_pole_n] run particle dust{color:[1.0,0.2,0.2],scale:1.6} ~ ~ ~ 0.35 0.35 0.35 0 4 force/execute at @e[tag=c9_pole_s] run particle dust{color:[0.2,0.5,1.0],scale:1.6} ~ ~ ~ 0.35 0.35 0.35 0 4 force/execute if score #tick c9_mag matches 1 run summon block_display ~ ~1.5 ~ {Tags:["c9_mag","c9_debris","c9_to_n"],Glowing:1b,glow_color_override:13421772,block_state:{Name:"minecraft:iron_block"},transformation:{left_rotation:[0.3f,0.2f,0.1f,0.9f],right_rotation:[0f,0f,0f,1f],scale:[0.55f,0.55f,0.55f],translation:[-0.27f,-0.27f,-0.27f]}}/execute if score #tick c9_mag matches 40 run summon block_display ~ ~1.5 ~ {Tags:["c9_mag","c9_debris","c9_to_s"],Glowing:1b,glow_color_override:16744272,block_state:{Name:"minecraft:waxed_copper_block"},transformation:{left_rotation:[0.1f,0.4f,0.2f,0.88f],right_rotation:[0f,0f,0f,1f],scale:[0.5f,0.5f,0.5f],translation:[-0.25f,-0.25f,-0.25f]}}/execute if score #tick c9_mag matches 80 run summon block_display ~ ~1.5 ~ {Tags:["c9_mag","c9_debris","c9_to_n"],Glowing:1b,glow_color_override:9868950,block_state:{Name:"minecraft:anvil"},transformation:{left_rotation:[0.2f,0.1f,0.4f,0.88f],right_rotation:[0f,0f,0f,1f],scale:[0.6f,0.6f,0.6f],translation:[-0.3f,-0.3f,-0.3f]}}/execute as @e[tag=c9_debris] at @s run scoreboard players add @s c9_mag 1/execute as @e[tag=c9_debris,scores={c9_mag=..110}] at @s rotated ~12 0 run tp @s ^0.18 ^0.02 ^0.32 ~14 ~8/execute as @e[tag=c9_debris,scores={c9_mag=111..}] at @s run tp @s ^ ^0.15 ^0.75 ~25 ~15/execute as @e[tag=c9_debris] at @s run particle electric_spark ~ ~ ~ 0.1 0.1 0.1 0.05 2 force/kill @e[tag=c9_debris,scores={c9_mag=145..}]setup #5 Summons an invisible marker armor stand at the center of the magnetic field. Rotating this single entity lets us swing both magnetic poles in a synchronized circle using local coordinates.loop #4 Teleports the red North Pole block display 4.5 blocks to the left of the rotating center marker using caret notation (<code>^4.5 ^ ^</code>), creating a smooth circular orbit.loop #9 Every 160-tick cycle, new metallic block displays (iron blocks, copper blocks, and anvils) are spawned near the lodestone base with slightly tilted quaternion rotations so they look like floating scrap.loop #13 For the first 110 ticks of a debris block's life, it spirals upward and outward through the magnetic field by combining lateral drift (<code>^0.18</code>) and forward motion (<code>^0.32</code>), then gets flung away at high speed after tick 111.


Recorded on our own test server: 53 frames at about 8.7 fps. Our image check saw: Glowing red and blue blocks with matching particle trails orbit a central floating block above a tiled pad while smaller glowing iron, copper, and anvil blocks float and move between them.
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 a player-controlled magnetic aura, remove the c9_center armor stand and change @e[tag=c9_center] in the loop commands to @p[tag=magnet_user]. Whenever a tagged player walks around, the North and South magnetic cores will orbit their body and pull orbiting metallic debris along with them.
/kill @e[tag=c9_mag]/scoreboard objectives remove c9_mag/fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 grass_blockNo. The debris is made of block_display entities rather than real falling blocks, so they never place blocks on the ground, and every piece is automatically removed after 145 ticks.
You can add a repeating command like /execute as @e[type=item,distance=..10] at @s facing entity @e[tag=c9_center,limit=1] feet run tp @s ^ ^ ^0.2 to slide dropped items toward the center core.
▶Steampunk Astrolabe GyroscopeMachines & MechanismsMedium24 cmds
▶Steampunk Printing Press Newspaper RollMachines & MechanismsHard24 cmds
▶Holographic Magnetic Tokamak Fusion ConfinementMachines & MechanismsExpert26 cmds
▶Kinematic Radial Aircraft Engine IgnitionMachines & MechanismsExpert24 cmds
▶Kinematic V8 Engine Piston CutawayMachines & MechanismsExpert24 cmds
▶Kinetic Moiré Pattern Interference SculptureMachines & MechanismsMedium23 cmds