Solar Wind Magnetosphere Deflection

Watch a glowing golden sun fire waves of plasma at a miniature rotating Earth, splitting around a shimmering blue magnetosphere with glowing polar auroras.

Java EditionSky & WeatherExpert24 commandsTested on a real 26.2 & 26.3 server
Orange solar wind particles from a magma sun deflect around a blue magnetic barrier protecting a miniature planet. Download the GIF Video & GIF © www.9minecraft.net

Aurora & Sky LightsSpaceFireOrangeGoldBlueLearningDecorationCinematicItem displaysArmor standsRotation math21+ commands

This command creation simulates space weather right above your stage. A radiant sun sits on one side, continuously launching streams of fiery golden solar wind toward a spinning miniature planet made of glowing display entities.

As the solar plasma approaches the planet, it hits an invisible magnetic shield. The golden streams deflect in real time around a shimmering blue bow shock, lighting up the north and south poles with green and purple aurora particles before fading into deep space.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard objectives add c9_age dummy
  3. /summon armor_stand ~3 ~6 ~ {Tags:["c9_all","c9_core"],Invisible:1b,NoGravity:1b,Marker:1b}
  4. /summon armor_stand ~-8 ~6 ~ {Tags:["c9_all","c9_sun_core"],Invisible:1b,NoGravity:1b,Marker:1b}
  5. /summon item_display ~3 ~6 ~ {Tags:["c9_all","c9_spin"],Glowing:1b,glow_color_override:5636095,brightness:{sky:15,block:15},item:{id:"minecraft:heart_of_the_sea",count:1},transformation:{translation:[0f,0f,0f],scale:[4.2f,4.2f,4.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  6. /summon item_display ~3 ~6 ~ {Tags:["c9_all","c9_spin"],brightness:{sky:15,block:15},item:{id:"minecraft:cyan_stained_glass",count:1},transformation:{translation:[0f,0f,0f],scale:[3.3f,3.3f,3.3f],left_rotation:[0f,0.38f,0f,0.92f],right_rotation:[0f,0f,0f,1f]}}
  7. /summon item_display ~-8 ~6 ~ {Tags:["c9_all","c9_spin"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},item:{id:"minecraft:magma_block",count:1},transformation:{translation:[0f,0f,0f],scale:[4.5f,4.5f,4.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  8. /summon armor_stand ~-8 ~6 ~ {Tags:["c9_all","c9_emit"],Invisible:1b,NoGravity:1b,Marker:1b,Rotation:[-90f,0f]}
  9. /summon armor_stand ~3 ~6 ~ {Tags:["c9_all","c9_shield"],Invisible:1b,NoGravity:1b,Marker:1b}

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

  1. /execute as @e[tag=c9_spin] at @s run tp @s ~ ~ ~ ~4 ~
  2. /execute as @e[tag=c9_emit] at @s run tp @s ~ ~ ~ ~37 ~29
  3. /execute at @e[tag=c9_emit] run summon armor_stand ^ ^ ^1.5 {Tags:["c9_all","c9_sw"],Invisible:1b,NoGravity:1b,Marker:1b}
  4. /execute at @e[tag=c9_sun_core] run summon armor_stand ~1.5 ~ ~ {Tags:["c9_all","c9_sw"],Invisible:1b,NoGravity:1b,Marker:1b}
  5. /execute as @e[tag=c9_sw] at @s run tp @s ~0.45 ~ ~
  6. /execute at @e[tag=c9_core] as @e[tag=c9_sw,distance=..4.6] at @s facing entity @e[tag=c9_core,limit=1] feet run tp @s ^ ^ ^-0.52
  7. /execute at @e[tag=c9_core] as @e[tag=c9_sw,distance=4.6..] at @s run particle dust_color_transition{from_color:[1.0,0.85,0.1],to_color:[1.0,0.3,0.0],scale:2.2} ~ ~ ~ 0.12 0.12 0.12 0 3 force
  8. /execute at @e[tag=c9_core] as @e[tag=c9_sw,distance=..4.8] at @s run particle dust_color_transition{from_color:[0.1,0.95,1.0],to_color:[0.2,0.3,1.0],scale:2.4} ~ ~ ~ 0.15 0.15 0.15 0 4 force
  9. /execute at @e[tag=c9_core] as @e[tag=c9_sw,distance=..4.8] at @s run particle soul_fire_flame ~ ~ ~ 0.1 0.1 0.1 0.02 1 force
  10. /execute as @e[tag=c9_shield] at @s run tp @s ~ ~ ~ ~16 ~22
  11. /execute at @e[tag=c9_shield] run particle dust{color:[0.1,0.7,1.0],scale:1.6} ^ ^ ^4.3 0.2 0.2 0.2 0 4 force
  12. /execute at @e[tag=c9_core] run particle dust_color_transition{from_color:[0.1,1.0,0.4],to_color:[0.6,0.1,1.0],scale:1.8} ~ ~2.3 ~ 0.6 0.15 0.6 0 4 force
  13. /execute at @e[tag=c9_sun_core] run particle flame ~ ~ ~ 1.4 1.4 1.4 0.03 8 force
  14. /scoreboard players add @e[tag=c9_sw] c9_age 1
  15. /kill @e[tag=c9_sw,scores={c9_age=42..}]

How it works

Frames from the test run

Solar Wind Magnetosphere Deflection - frame 1Solar Wind Magnetosphere Deflection - frame 2Solar Wind Magnetosphere Deflection - frame 3

Recorded on our own test server: 53 frames at about 8.8 fps. Our image check saw: A large glowing magma block rotates on the left while launching streams of orange particles that curve around a blue particle barrier in front of a spinning heart of the sea encased in glass.

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. Stand at the centre of a flat open area and run each command from the Setup list in chat once.
  2. Place 14 repeating command blocks in a line or column near your stage and set all of them to Repeat, Unconditional, and Always Active.
  3. Paste one command from the Loop list into each repeating command block.
  4. If your command blocks are away from the stage centre, wrap the coordinate-based loop commands with execute positioned X Y Z run so ~ ~ ~ stays at the centre of the build.
  5. Set the time to night (/time set night) to see the glowing planet, solar corona, and blue bow-shock particles clearly.

Use it with real players

To turn this into a player-controlled magnetic shield spell, remove the c9_core armor stand and instead give yourself the tag with /tag @s add c9_core. Any incoming projectiles or solar wind markers will dynamically deflect around your player as you walk through the beam.

Remove it again 3 commands

  1. /kill @e[tag=c9_all]
  2. /scoreboard objectives remove c9_t
  3. /scoreboard objectives remove c9_age

FAQ

Why did we use item_display instead of block_display for the planet and sun?

An item_display scales around its exact centre point by default, allowing us to rotate the planet and sun smoothly with a simple /tp command without the blocks swinging off-axis.

Will the solar wind entities cause lag over time?

No. Every solar wind marker has a scoreboard age timer (c9_age) and is automatically removed after 42 ticks (just over 2 seconds), keeping the total entity count around 90.

Commands used

/execute/kill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides