Chronos Sundial Shadow Time-Lapse

Build a working vanilla Minecraft sundial with real-time display entity shadows that rotate and stretch as a glowing sun and moon orbit overhead.

Java EditionComplex Contraptions & CinematicsHard24 commandsTested on a real 26.2 & 26.3 server
A Minecraft sundial projects rotating black shadows as an artificial sun and moon orbit above. Download the GIF Video & GIF © www.9minecraft.net

SimulationsSpaceMedievalMysticWhiteBlackGoldDecorationLearningServer LobbyParticlesBlock displaysItem displaysSmooth animation (interpolation)Scoreboard timersExecute chainsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

The Chronos Sundial brings real-time shadow projection to vanilla Minecraft using display entities and vector orientation. A miniature stone henge and central gnomon sit atop a quartz and gold dial while an artificial sun and moon orbit through the sky.

As the celestial bodies spin around the dial, five stretched black concrete display shadows dynamically pivot away from the sun, creating a clean time-lapse effect complete with glowing trails and golden dial runes.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 smooth_quartz
  3. /fill ~-7 ~-1 ~-7 ~7 ~-1 ~7 chiseled_quartz_block
  4. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 dark_prismarine
  5. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 gold_block
  6. /fill ~ ~ ~ ~ ~4 ~ lodestone
  7. /summon marker ~ ~0.02 ~ {Tags:["c9_e","c9_core"]}
  8. /summon block_display ~ ~0.03 ~ {Tags:["c9_e","c9_sh"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,0f,0f],scale:[1.0f,0.03f,7.5f]},block_state:{Name:"minecraft:black_concrete"},teleport_duration:2}
  9. /summon item_display ~ ~9 ~ {Tags:["c9_e","c9_sun"],item:{id:"minecraft:magma_block",count:1},Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2.6f,2.6f,2.6f]},teleport_duration:2}
  10. /summon item_display ~ ~9 ~ {Tags:["c9_e","c9_moon"],item:{id:"minecraft:sea_lantern",count:1},Glowing:1b,glow_color_override:5592575,brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.8f,1.8f,1.8f]},teleport_duration:2}

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

  1. /execute if score #init c9_t matches 0..3 as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~90 ~
  2. /execute if score #init c9_t matches 0..3 at @e[tag=c9_core] positioned ^ ^ ^5 run fill ~ ~ ~ ~ ~2 ~ chiseled_stone_bricks
  3. /execute if score #init c9_t matches 0..3 at @e[tag=c9_core] positioned ^ ^ ^5 run summon block_display ~ ~0.01 ~ {Tags:["c9_e","c9_sh"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.45f,0f,0f],scale:[0.9f,0.02f,3.8f]},block_state:{Name:"minecraft:black_concrete"},teleport_duration:2}
  4. /scoreboard players add #init c9_t 1
  5. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~4 ~
  6. /execute at @e[tag=c9_core] as @e[tag=c9_sun] run tp @s ^ ^6 ^10 ~6 ~4
  7. /execute at @e[tag=c9_core] as @e[tag=c9_moon] run tp @s ^ ^4 ^-10 ~-6 ~-4
  8. /execute as @e[tag=c9_sh] at @s facing entity @e[tag=c9_sun,limit=1] feet run tp @s ~ ~ ~ ~180 0
  9. /execute at @e[tag=c9_sun] run particle flame ~ ~ ~ 0.6 0.6 0.6 0.02 6 force
  10. /execute at @e[tag=c9_sun] run particle dust{color:[1.0,0.75,0.1],scale:2.5} ~ ~ ~ 0.9 0.9 0.9 0 5 force
  11. /execute at @e[tag=c9_moon] run particle end_rod ~ ~ ~ 0.5 0.5 0.5 0.02 3 force
  12. /execute at @e[tag=c9_moon] run particle dust{color:[0.3,0.6,1.0],scale:2.0} ~ ~ ~ 0.7 0.7 0.7 0 4 force
  13. /execute at @e[tag=c9_core] run particle dust{color:[1.0,0.85,0.3],scale:1.4} ^ ^0.2 ^6.8 0.1 0.1 0.1 0 4 force
  14. /execute at @e[tag=c9_core] run particle enchant ~ ~2.5 ~ 1.5 1.5 1.5 0.5 10 force

How it works

Frames from the test run

Chronos Sundial Shadow Time-Lapse - frame 1Chronos Sundial Shadow Time-Lapse - frame 2Chronos Sundial Shadow Time-Lapse - frame 3

Recorded on our own test server: 57 frames at about 9.4 fps. Our image check saw: A sundial structure with stone pillars casts dynamic black block shadows that rotate as an orbiting magma block sun and sea lantern moon circle the platform with particle trails, though some extraneous glowing outlines are visible in the foreground.

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 and run the 10 setup commands in order to build the quartz and prismarine sundial base, central lodestone pillar, and celestial display entities.
  2. Place 14 repeating command blocks (or 1 repeating followed by 13 chain command blocks) nearby and set them all to Always Active.
  3. Paste each loop command into the command blocks in order.
  4. During the first 4 ticks, the system automatically builds the 4 outer stone brick pillars and attaches their shadow displays.
  5. Set the time to night or midnight so the glowing sun, moon, and particle rings stand out clearly against the dark floor.

Use it with real players

To let a player control the sun position manually instead of an automatic orbit, replace the @e[tag=c9_sun,limit=1] target in loop command 8 with @p and hold a glowing torch or lantern: every shadow on the sundial will dynamically point away from you as you walk around the structure.

Remove it again 4 commands

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

FAQ

Why do the shadows rotate smoothly instead of snapping each tick?

Each block_display is summoned with teleport_duration:2, which tells the Minecraft client to smoothly interpolate rotation changes across 2 ticks.

Can I add more pillars to cast shadows?

Yes! Any block_display tagged with c9_sh and scaled along the Z axis will automatically orient itself away from the sun entity every tick.

Commands used

/execute/fill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides