Orbital Gravity Simulation

Build a live planetary solar system in Minecraft using block displays and particles that orbit a glowing central star with inclined 3D orbital mechanics.

Java EditionSky & WeatherExpert23 commandsTested on a real 26.2 & 26.3 server
Glowing block planets and a small icy moon orbit a central golden star in the night sky. Download the GIF Video & GIF © www.9minecraft.net

Eclipses & Celestial EventsSpaceGoldBlueRedLearningDecorationCinematicBlock displaysArmor standsSmooth animation (interpolation)Rotation math21+ commands

This command creation constructs a glowing miniature solar system right above your world. A bright golden central star sits suspended in the air while four unique planets—each made from scaled block displays—orbit around it at different speeds, distances, and 3D tilt angles. A nimble icy moon even orbits around the outer ring planet as it travels.

Everything runs purely on vanilla rotation math and particle emitters. As the planets sweep along their orbital paths, they leave colorful trails of dust, fire, and magic particles behind them, creating a live cosmic light show that looks especially vivid against the night sky.

1. Setup - type these once 9 commands

  1. /summon block_display ~ ~8 ~ {Tags:["c9_sim","c9_sun"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:ochre_froglight"},transformation:{translation:[-1.25f,-1.25f,-1.25f],left_rotation:[0f,0f,0f,1f],scale:[2.5f,2.5f,2.5f],right_rotation:[0f,0f,0f,1f]}}
  2. /summon armor_stand ~ ~8 ~ {Tags:["c9_sim","c9_pivot","c9_p1"],Invisible:1b,NoGravity:1b,Marker:1b,Rotation:[0f,12f]}
  3. /summon armor_stand ~ ~8 ~ {Tags:["c9_sim","c9_pivot","c9_p2"],Invisible:1b,NoGravity:1b,Marker:1b,Rotation:[90f,-10f]}
  4. /summon armor_stand ~ ~8 ~ {Tags:["c9_sim","c9_pivot","c9_p3"],Invisible:1b,NoGravity:1b,Marker:1b,Rotation:[180f,18f]}
  5. /summon armor_stand ~ ~8 ~ {Tags:["c9_sim","c9_pivot","c9_p4"],Invisible:1b,NoGravity:1b,Marker:1b,Rotation:[270f,-24f]}
  6. /summon block_display ~ ~8 ~ {Tags:["c9_sim","c9_body","c9_b1"],Glowing:1b,glow_color_override:16724736,brightness:{sky:15,block:15},teleport_duration:1,block_state:{Name:"minecraft:magma_block"},transformation:{translation:[-0.4f,-0.4f,-0.4f],left_rotation:[0f,0f,0f,1f],scale:[0.8f,0.8f,0.8f],right_rotation:[0f,0f,0f,1f]}}
  7. /summon block_display ~ ~8 ~ {Tags:["c9_sim","c9_body","c9_b2"],Glowing:1b,glow_color_override:39423,brightness:{sky:15,block:15},teleport_duration:1,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.6f,-0.6f,-0.6f],left_rotation:[0f,0f,0f,1f],scale:[1.2f,1.2f,1.2f],right_rotation:[0f,0f,0f,1f]}}
  8. /summon block_display ~ ~8 ~ {Tags:["c9_sim","c9_body","c9_b3"],Glowing:1b,glow_color_override:11167487,brightness:{sky:15,block:15},teleport_duration:1,block_state:{Name:"minecraft:amethyst_block"},transformation:{translation:[-0.75f,-0.75f,-0.75f],left_rotation:[0f,0f,0f,1f],scale:[1.5f,1.5f,1.5f],right_rotation:[0f,0f,0f,1f]}}
  9. /summon block_display ~ ~8 ~ {Tags:["c9_sim","c9_body","c9_b4"],Glowing:1b,glow_color_override:65500,brightness:{sky:15,block:15},teleport_duration:1,block_state:{Name:"minecraft:blue_ice"},transformation:{translation:[-0.25f,-0.25f,-0.25f],left_rotation:[0f,0f,0f,1f],scale:[0.5f,0.5f,0.5f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /execute as @e[tag=c9_p1] at @s run tp @s ~ ~ ~ ~5.5 ~
  2. /execute as @e[tag=c9_p2] at @s run tp @s ~ ~ ~ ~3.2 ~
  3. /execute as @e[tag=c9_p3] at @s run tp @s ~ ~ ~ ~1.8 ~
  4. /execute as @e[tag=c9_p4] at @s run tp @s ~ ~ ~ ~13.0 ~
  5. /execute at @e[tag=c9_p1] positioned ^ ^ ^4.2 run tp @e[tag=c9_b1,limit=1] ~ ~ ~ ~8 ~
  6. /execute at @e[tag=c9_p2] positioned ^ ^ ^7.5 run tp @e[tag=c9_b2,limit=1] ~ ~ ~ ~5 ~
  7. /execute at @e[tag=c9_p3] positioned ^ ^ ^11.5 run tp @e[tag=c9_b3,limit=1] ~ ~ ~ ~3 ~
  8. /execute at @e[tag=c9_b3] rotated as @e[tag=c9_p4,limit=1] positioned ^ ^ ^2.3 run tp @e[tag=c9_b4,limit=1] ~ ~ ~ ~12 ~
  9. /execute at @e[tag=c9_sun] run particle flame ~ ~ ~ 0.9 0.9 0.9 0.02 6 force
  10. /execute at @e[tag=c9_sun] run particle end_rod ~ ~ ~ 3.5 2.0 3.5 0.01 1 force
  11. /execute at @e[tag=c9_b1] run particle dust{color:[1.0,0.35,0.05],scale:1.2} ~ ~ ~ 0.1 0.1 0.1 0 3 force
  12. /execute at @e[tag=c9_b2] run particle dust{color:[0.1,0.75,1.0],scale:1.4} ~ ~ ~ 0.15 0.15 0.15 0 4 force
  13. /execute at @e[tag=c9_b3] run particle dust{color:[0.75,0.25,1.0],scale:1.6} ~ ~ ~ 0.2 0.2 0.2 0 5 force
  14. /execute at @e[tag=c9_b4] run particle snowflake ~ ~ ~ 0.05 0.05 0.05 0 2 force

How it works

Frames from the test run

Orbital Gravity Simulation - frame 1Orbital Gravity Simulation - frame 2Orbital Gravity Simulation - frame 3

Recorded on our own test server: 57 frames at about 9.5 fps. Our image check saw: A glowing central golden block is orbited by several colorful, scaled block displays leaving particle trails against a night sky.

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. Find a flat open area with clear sky above it and stand at the center block.
  2. Run each of the 9 setup commands in chat or paste them into impulse command blocks to summon the central star, orbital pivots, and planets.
  3. Place 14 repeating command blocks set to Always Active nearby.
  4. Paste one loop command into each repeating command block.
  5. Set the time to night (/time set midnight) to see the glowing planet outlines and colorful orbital trails clearly.

Use it with real players

To make the solar system orbit around a player instead of a fixed point, add a repeating command block running /execute at @p run tp @e[tag=c9_pivot] ~ ~2 ~ and /execute at @p run tp @e[tag=c9_sun] ~ ~2 ~ so the entire gravitational center follows you wherever you walk.

Remove it again 1 command

  1. /kill @e[tag=c9_sim]

FAQ

How do I change the radius or tilt of a planet's orbit?

Change the second number in the pivot armor stand's Rotation tag during setup to adjust the orbital tilt angle, or change the ^ ^ ^distance number in the loop teleport commands to make an orbit wider or tighter.

Why do the planets move smoothly instead of jittering every tick?

Each block_display entity has teleport_duration:1 set in its NBT data, which tells the Minecraft client to smoothly interpolate position and rotation changes between server ticks.

Commands used

/execute/particle/summon/tp

Similar creations

Join 9Minecraft News & Guides