Celestial Sundial Time-Lapse Shadow Sweeper

Build an automated stone sundial with an orbiting solar core that casts a sweeping shadow beam, igniting twelve hour markers into colorful fire pillars.

Java EditionFireworks & Light ShowsHard24 commandsTested on a real 26.2 & 26.3 server
An artificial sun orbits above a dark stone sundial, igniting twelve surrounding braziers with blue and orange flames. Download the GIF Video & GIF © www.9minecraft.net

Light Beams & LasersSpaceFireDarkGoldOrangeBlackDecorationServer LobbyCinematicBlock displaysArmor standsBlock building (fill/setblock/clone)SoundsRotation math21+ commands

The Celestial Sundial Time-Lapse Shadow Sweeper places a carved stone monument at the center of your world, topped with a tall gold gnomon. Above it, a bright artificial sun orbits in a rapid time-lapse circle while casting a sharp beam of dark shadow particles across the dial below.

As the shadow sweeps across the twelve hour markers placed around the ring, each brazier catches fire and erupts into a multi-colored pillar of flame, soul fire, and glowing dust, creating a continuous clockwork light show.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 polished_blackstone
  3. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 chiseled_polished_blackstone
  4. /fill ~-1 ~ ~-1 ~1 ~ ~1 polished_blackstone_slab
  5. /fill ~ ~ ~ ~ ~4 ~ gilded_blackstone
  6. /summon block_display ~ ~5 ~ {Tags:["c9_ent","c9_gnomon"],Glowing:1b,glow_color_override:16766720,block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.8f,0.8f],translation:[-0.4f,-0.4f,-0.4f]}}
  7. /summon armor_stand ~ ~ ~ {Tags:["c9_ent","c9_piv"],Invisible:1b,NoGravity:1b,Marker:1b}
  8. /summon armor_stand ~ ~1 ~ {Tags:["c9_ent","c9_spawner"],Invisible:1b,NoGravity:1b,Marker:1b}
  9. /summon block_display ~ ~9 ~-7 {Tags:["c9_ent","c9_sun"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:ochre_froglight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.6f,1.6f,1.6f],translation:[-0.8f,-0.8f,-0.8f]}}
  10. /scoreboard players set @e[tag=c9_spawner] c9_timer 12

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

  1. /execute as @e[tag=c9_spawner,scores={c9_timer=1..}] at @s run summon armor_stand ^ ^ ^7 {Tags:["c9_ent","c9_hour"],Invisible:1b,NoGravity:1b,Marker:1b}
  2. /execute as @e[tag=c9_spawner,scores={c9_timer=1..}] at @s run tp @s ~ ~ ~ ~30 ~
  3. /execute as @e[tag=c9_spawner,scores={c9_timer=1..}] at @s run setblock ^ ^-1 ^7 lodestone
  4. /scoreboard players remove @e[tag=c9_spawner,scores={c9_timer=1..}] c9_timer 1
  5. /execute as @e[tag=c9_piv] at @s run tp @s ~ ~ ~ ~6 ~
  6. /execute at @e[tag=c9_piv] run tp @e[tag=c9_sun] ^ ^9 ^-7
  7. /execute at @e[tag=c9_sun] run particle flame ~ ~ ~ 0.4 0.4 0.4 0.03 12 force
  8. /execute at @e[tag=c9_sun] run particle dust{color:[1.0,0.85,0.2],scale:2.5} ~ ~ ~ 0.6 0.6 0.6 0 6 force
  9. /execute at @e[tag=c9_piv] run particle dust{color:[0.05,0.02,0.1],scale:1.8} ^ ^2.5 ^3.5 0.2 0.2 0.2 0 15 force
  10. /execute at @e[tag=c9_piv] positioned ^ ^1 ^7 run scoreboard players set @e[tag=c9_hour,distance=..2.2] c9_timer 25
  11. /execute at @e[tag=c9_piv] positioned ^ ^1 ^7 if entity @e[tag=c9_hour,distance=..1.2] run playsound block.fire.ambient master @a ~ ~ ~ 0.6 1.6
  12. /execute as @e[tag=c9_hour,scores={c9_timer=1..}] at @s run particle flame ~ ~0.2 ~ 0.15 1.4 0.15 0.02 10 force
  13. /execute as @e[tag=c9_hour,scores={c9_timer=1..}] at @s run particle soul_fire_flame ~ ~1.8 ~ 0.2 0.9 0.2 0.04 6 force
  14. /scoreboard players remove @e[tag=c9_hour,scores={c9_timer=1..}] c9_timer 1

How it works

Frames from the test run

Celestial Sundial Time-Lapse Shadow Sweeper - frame 1Celestial Sundial Time-Lapse Shadow Sweeper - frame 2Celestial Sundial Time-Lapse Shadow Sweeper - frame 3

Recorded on our own test server: 48 frames at about 9.6 fps. Our image check saw: A glowing block orbits above a dark stone platform with a gold center, leaving a trail of flame particles while dark shadow particles sweep across twelve flaming braziers below.

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 center of a flat open area with at least 10 blocks of space in every direction.
  2. Run each command from the Setup list in chat once to build the blackstone dial, gnomon pillar, and helper entities.
  3. Place a Repeating Command Block set to Always Active near the build and paste the first Loop command into it.
  4. Place 13 Chain Command Blocks set to Always Active in a line connected to the repeating block, and paste the remaining Loop commands in order.
  5. Set the time to night with /time set night so the glowing sun and fire pillars stand out against the dark stone.

Use it with real players

To let a player control the sun and shadow direction manually instead of the automatic orbit, disable loop command 5 (the pivot rotation) and replace it with /execute as @e[tag=c9_piv] at @s run tp @s ~ ~ ~ facing entity @p so the shadow always sweeps away from where you walk.

Remove it again 4 commands

  1. /kill @e[tag=c9_ent]
  2. /fill ~-8 ~ ~-8 ~8 ~6 ~8 air
  3. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 grass_block
  4. /scoreboard objectives remove c9_timer

FAQ

How do I make the sun orbit faster or slower?

Change the rotation angle in the 5th loop command (/execute as @e[tag=c9_piv] at @s run tp @s ~ ~ ~ ~6 ~). Increase ~6 to ~10 for a faster time-lapse, or lower it to ~3 for a slower sweep.

Will this spawn too many entities over time?

No. The spawner stand only summons 12 hour markers during the first 12 ticks and then stops once its c9_timer reaches zero, keeping the total entity count at exactly 16.

Commands used

/execute/fill/particle/playsound/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides