Galactic Spiral Arm Collision Simulation

Watch two glowing spiral galaxies orbit and collide in slow motion, flinging tidal tails of cosmic dust and miniature star blocks across the night sky.

Java EditionComplex Contraptions & CinematicsExpert21 commandsTested on a real 26.2 & 26.3 server
Two glowing galactic cores collide in Minecraft, flinging out cyan and golden tidal tails of miniature blocks. Download the GIF Video & GIF © www.9minecraft.net

SimulationsSpaceCyanPinkGoldCinematicLearningDecorationBlock displaysRotation math21+ commands

This command creation simulates a cosmic merger right above your world. Two distinct spiral galaxies—one burning with cyan and blue stars, the other glowing with magenta and golden dust—orbit each other in slow motion before crashing together at the center of the arena.

As the galactic cores pass through one another, gravitational forces fling long tidal tails of glowing miniature star blocks and multi-colored particle trails outward into space. The entire simulation loops smoothly, creating a hypnotic celestial light show using display entities and colorful particle physics.

1. Setup - type these once 5 commands

  1. /scoreboard objectives add c9_gal dummy
  2. /scoreboard players set #tick c9_gal 0
  3. /summon marker ~ ~8 ~ {Tags:["c9_gal","c9_hub"]}
  4. /summon block_display ~-6 ~8 ~ {Tags:["c9_gal","c9_core1"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.4f,0.5f,1.4f],translation:[-0.7f,-0.25f,-0.7f]}}
  5. /summon block_display ~6 ~8 ~ {Tags:["c9_gal","c9_core2"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:shroomlight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.4f,0.5f,1.4f],translation:[-0.7f,-0.25f,-0.7f]}}

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

  1. /scoreboard players add #tick c9_gal 1
  2. /execute if score #tick c9_gal matches 160.. run scoreboard players set #tick c9_gal 0
  3. /execute as @e[tag=c9_hub] at @s run tp @s ~ ~ ~ ~4.5 ~
  4. /execute at @e[tag=c9_hub] if score #tick c9_gal matches 0..79 run tp @e[tag=c9_core1,limit=1] ^ ^ ^5.5 ~14 ~
  5. /execute at @e[tag=c9_hub] if score #tick c9_gal matches 0..79 run tp @e[tag=c9_core2,limit=1] ^ ^ ^-5.5 ~14 ~
  6. /execute at @e[tag=c9_hub] if score #tick c9_gal matches 80..159 run tp @e[tag=c9_core1,limit=1] ^ ^1 ^1.2 ~24 ~
  7. /execute at @e[tag=c9_hub] if score #tick c9_gal matches 80..159 run tp @e[tag=c9_core2,limit=1] ^ ^-1 ^-1.2 ~24 ~
  8. /execute at @e[tag=c9_core1] run summon block_display ^ ^ ^0.6 {Tags:["c9_gal","c9_s1"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:diamond_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.22f,0.22f,0.22f],translation:[-0.11f,-0.11f,-0.11f]}}
  9. /execute at @e[tag=c9_core2] run summon block_display ^ ^ ^0.6 {Tags:["c9_gal","c9_s2"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.22f,0.22f,0.22f],translation:[-0.11f,-0.11f,-0.11f]}}
  10. /execute as @e[tag=c9_s1] at @s run tp @s ^0.06 ^0.01 ^0.24 ~5 ~
  11. /execute as @e[tag=c9_s2] at @s run tp @s ^0.06 ^-0.01 ^0.24 ~5 ~
  12. /execute at @e[tag=c9_s1] run particle dust_color_transition{from_color:[0.1,0.9,1.0],to_color:[0.2,0.2,1.0],scale:1.2} ~ ~ ~ 0.1 0.05 0.1 0 1 force
  13. /execute at @e[tag=c9_s2] run particle dust_color_transition{from_color:[1.0,0.7,0.1],to_color:[0.9,0.1,0.6],scale:1.2} ~ ~ ~ 0.1 0.05 0.1 0 1 force
  14. /scoreboard players add @e[tag=c9_s1] c9_gal 1
  15. /kill @e[tag=c9_gal,scores={c9_gal=42..}]
  16. /scoreboard players add @e[tag=c9_s2] c9_gal 1

How it works

Frames from the test run

Galactic Spiral Arm Collision Simulation - frame 1Galactic Spiral Arm Collision Simulation - frame 2Galactic Spiral Arm Collision Simulation - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: Two glowing cores (one cyan/blue, one golden/magenta) orbit and pass through each other on a grassy plane, flinging out long curved trails of miniature glowing blocks and particles.

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. Create a flat clearing and switch the time to night so the glowing galactic cores and particle trails stand out clearly.
  2. Run each of the 5 setup commands once in your chat window while standing at the center of your stage.
  3. Place a column or line of 16 Repeating Command Blocks set to Always Active near the center of your stage.
  4. Paste one loop command into each repeating command block in order.
  5. Watch the two spiral galaxies orbit one another, spin out glowing arms of miniature stars, and crash together every few seconds.

Use it with real players

If you want the galactic collision to follow a player like a cosmic aura instead of floating at a fixed stage center, replace @e[tag=c9_hub] in the loop commands with your player selector @p, or add a repeating command /execute at @p run tp @e[tag=c9_hub] ~ ~6 ~ ~4.5 ~ so the swirling galaxies hover directly above your head as you walk.

Remove it again 2 commands

  1. /kill @e[tag=c9_gal]
  2. /scoreboard objectives remove c9_gal

FAQ

Will summoning miniature star blocks every tick cause lag over time?

No. Each star entity is tracked with the c9_gal scoreboard objective and automatically removed after 42 ticks, keeping the total entity count under 90 at all times.

How can I make the galaxies larger or wider?

Increase the forward speed in the star movement commands from ^0.24 to ^0.35, or change the orbit distance in the core teleport commands from ^5.5 to ^8.0.

Commands used

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

Similar creations

Join 9Minecraft News & Guides