An icy glowing comet streaks across the night sky, trailing a sweeping blue plasma ion stream and a curved curtain of glittering golden stardust.
A glowing blue_ice comet nucleus dives in a smooth arc across the night sky, surrounded by a frosty coma of drifting snowflakes. As it swings past the centre of the stage, two distinct tails fan out behind it: a straight cyan-blue ion stream and a wide, curved curtain of warm golden stardust.
The effect uses a hidden virtual solar anchor marker so the ion stream always sweeps away from the sun while dust markers drift slowly along the curved wake, recreating real comet tail geometry in vanilla commands.
/scoreboard objectives add c9_tick dummy/scoreboard objectives add c9_age dummy/summon marker ~ ~ ~ {Tags:["c9_ctrl"]}/summon marker ~-4 ~3 ~-14 {Tags:["c9_sun"]}/scoreboard players set @e[tag=c9_ctrl] c9_tick 0/scoreboard players add @e[tag=c9_ctrl] c9_tick 1/execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 95.. run scoreboard players set @e[tag=c9_ctrl] c9_tick 0/execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 1 run summon block_display ~-11 ~14 ~-7.5 {Tags:["c9_core","c9_life"],Rotation:[-45f,38f],block_state:{Name:"minecraft:blue_ice"},Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},teleport_duration:2,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.425f,-0.425f,-0.675f],scale:[0.85f,0.85f,1.35f]}}/execute as @e[tag=c9_core] at @s run tp @s ^ ^ ^0.33 ~-0.55 ~-0.95/execute at @e[tag=c9_core] run particle snowflake ~ ~ ~ 0.45 0.45 0.45 0.03 8 force/execute at @e[tag=c9_core] facing entity @e[tag=c9_sun,limit=1] feet positioned ^ ^ ^-1.8 run particle dust{color:[0.30,0.90,1.0],scale:2.2} ~ ~ ~ 0.4 0.4 0.4 0 10 force/execute at @e[tag=c9_core] facing entity @e[tag=c9_sun,limit=1] feet positioned ^ ^ ^-4.6 run particle dust{color:[0.12,0.58,1.0],scale:1.7} ~ ~ ~ 0.45 0.45 0.45 0 9 force/execute at @e[tag=c9_core] facing entity @e[tag=c9_sun,limit=1] feet positioned ^ ^ ^-7.6 run particle soul_fire_flame ~ ~ ~ 0.5 0.5 0.5 0.02 7 force/execute at @e[tag=c9_core] run summon marker ~ ~ ~ {Tags:["c9_dust","c9_life"]}/execute as @e[tag=c9_dust] at @s facing entity @e[tag=c9_sun,limit=1] feet run tp @s ^ ^-0.015 ^-0.06/execute at @e[tag=c9_dust] run particle dust{color:[1.0,0.80,0.20],scale:1.35} ~ ~ ~ 0.35 0.35 0.35 0 2 force/execute at @e[tag=c9_dust] run particle end_rod ~ ~ ~ 0.45 0.45 0.45 0.004 1 force/scoreboard players add @e[tag=c9_life] c9_age 1/kill @e[tag=c9_life,scores={c9_age=84..}]setup #4 Places an invisible marker tagged <code>c9_sun</code> to act as the solar wind origin so both tails orient naturally relative to it.loop #3 At tick 1 of each 95-tick cycle, summons the glowing <code>blue_ice</code> comet core using <code>teleport_duration:2</code> for smooth motion.loop #4 Advances the comet along its local forward axis while gently turning yaw and pitch each tick to carve a hyperbolic dive and climb.loop #6 Rotates execution toward <code>c9_sun</code> and steps backward along <code>^ ^ ^-1.8</code> to project the bright cyan-blue ion beam straight away from the sun.loop #10 Drifts each golden stardust marker slowly away from the sun and slightly downward, stretching the curved trail into a wide shimmering curtain.loop #14 Removes the comet core and older dust markers after 84 ticks so entity counts stay low and the cycle resets cleanly.


Recorded on our own test server: 49 frames at about 9.8 fps. Our image check saw: A glowing cyan-outlined ice block arcs across the night sky, leaving a wide curved trail of golden-white particles alongside drifting blue snowflakes and upward-sweeping cyan flame particles.
To trigger the comet on demand instead of on an automatic timer, remove the first two loop commands and run /scoreboard players set @e[tag=c9_ctrl] c9_tick 1 from a button, pressure plate, or custom item advancement whenever a player summons the flyby, or move c9_sun to a player with /tp @e[tag=c9_sun] @p so the tails always sweep away from where you stand.
/kill @e[tag=c9_ctrl]/kill @e[tag=c9_sun]/kill @e[tag=c9_life]/scoreboard objectives remove c9_tick/scoreboard objectives remove c9_ageReal comets form two tails: lightweight ionized gas is pushed straight away from the sun by solar wind, while heavier golden dust lags along the comet's curved path and drifts outward more slowly.
Yes. Change the Y coordinate (~14) in the third loop command to raise or lower the starting altitude, and adjust c9_sun's Y coordinate (~3) in the fourth setup command to match.
▶Anvil Cloud Forked Lightning StormSky & WeatherHard
▶Crimson Blood Moon Reverse RainSky & WeatherHard
▶Golden Treasure Cloud RainstormSky & WeatherEasy
▶Shattering Giant Hailstone BlizzardSky & WeatherMedium
▶Total Solar Eclipse Corona FlareSky & WeatherEasy
▶Volcanic Ash And Magma RainSky & WeatherMedium