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.
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.
/scoreboard objectives add c9_gal dummy/scoreboard players set #tick c9_gal 0/summon marker ~ ~8 ~ {Tags:["c9_gal","c9_hub"]}/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]}}/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]}}/scoreboard players add #tick c9_gal 1/execute if score #tick c9_gal matches 160.. run scoreboard players set #tick c9_gal 0/execute as @e[tag=c9_hub] at @s run tp @s ~ ~ ~ ~4.5 ~/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 ~/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 ~/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 ~/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 ~/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]}}/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]}}/execute as @e[tag=c9_s1] at @s run tp @s ^0.06 ^0.01 ^0.24 ~5 ~/execute as @e[tag=c9_s2] at @s run tp @s ^0.06 ^-0.01 ^0.24 ~5 ~/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/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/scoreboard players add @e[tag=c9_s1] c9_gal 1/kill @e[tag=c9_gal,scores={c9_gal=42..}]/scoreboard players add @e[tag=c9_s2] c9_gal 1setup #4 Summons the first galactic core using a <code>block_display</code> entity shaped like a flattened disc with full sky and block brightness and a cyan glow outline.loop #4 Positions the first galactic core 5.5 blocks out from the rotating center hub during the wide orbit phase, while spinning the core itself by 14 degrees per tick.loop #6 Brings the galactic core in tight (1.2 blocks from the center) and doubles its spin rate during ticks 80 to 159 to simulate the high-speed galactic collision and merger.loop #10 Moves every star in the first galaxy forward and curves its yaw by 5 degrees each tick, creating logarithmic spiral arms and sweeping tidal tails.loop #12 Draws a glowing cosmic dust trail along the spiral arms that transitions from bright cyan to deep blue.loop #15 Removes old star display entities after 42 ticks (just over 2 seconds) so the entity count stays strictly capped around 85 entities and never lags the world.


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.
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.
/kill @e[tag=c9_gal]/scoreboard objectives remove c9_galNo. 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.
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.
▶Supernova Collapse & Black Hole AccretionSimulationsExpert22 cmds
▶Four-Dimensional Hypercube Tesseract RotationSimulationsExpert24 cmds
▶Subatomic Electron Orbital Cloud VisualizerSimulationsExpert24 cmds
▶Aurora Borealis & Magnetic Pole ShiftSimulationsHard24 cmds
▶Chronos Sundial Shadow Time-LapseSimulationsHard24 cmds
▶Conway's Game of Life in BlocksSimulationsMedium25 cmds