Build a working vanilla Minecraft sundial with real-time display entity shadows that rotate and stretch as a glowing sun and moon orbit overhead.
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.
/scoreboard objectives add c9_t dummy/fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 smooth_quartz/fill ~-7 ~-1 ~-7 ~7 ~-1 ~7 chiseled_quartz_block/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 dark_prismarine/fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 gold_block/fill ~ ~ ~ ~ ~4 ~ lodestone/summon marker ~ ~0.02 ~ {Tags:["c9_e","c9_core"]}/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}/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}/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}/execute if score #init c9_t matches 0..3 as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~90 ~/execute if score #init c9_t matches 0..3 at @e[tag=c9_core] positioned ^ ^ ^5 run fill ~ ~ ~ ~ ~2 ~ chiseled_stone_bricks/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}/scoreboard players add #init c9_t 1/execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~4 ~/execute at @e[tag=c9_core] as @e[tag=c9_sun] run tp @s ^ ^6 ^10 ~6 ~4/execute at @e[tag=c9_core] as @e[tag=c9_moon] run tp @s ^ ^4 ^-10 ~-6 ~-4/execute as @e[tag=c9_sh] at @s facing entity @e[tag=c9_sun,limit=1] feet run tp @s ~ ~ ~ ~180 0/execute at @e[tag=c9_sun] run particle flame ~ ~ ~ 0.6 0.6 0.6 0.02 6 force/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/execute at @e[tag=c9_moon] run particle end_rod ~ ~ ~ 0.5 0.5 0.5 0.02 3 force/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/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/execute at @e[tag=c9_core] run particle enchant ~ ~2.5 ~ 1.5 1.5 1.5 0.5 10 forcesetup #8 Summons the central shadow as a flattened <code>black_concrete</code> block display stretched 7.5 blocks along its local Z axis and offset by -0.5 on X so it rotates cleanly around the central pillar.loop #2 During the first 4 ticks (<code>0..3</code>), the core marker steps 90 degrees each tick and places four outer stone brick pillars along with their individual shadow display entities.loop #6 Orbits the glowing magma block sun 10 blocks out and 6 blocks up relative to the rotating <code>c9_core</code> marker using local caret coordinates.loop #8 Points every shadow display entity directly toward the sun and flips its yaw by <code>~180</code> degrees with a flat pitch of <code>0</code>, projecting the shadow straight across the ground away from the light source.


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.
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.
/kill @e[tag=c9_e]/scoreboard objectives remove c9_t/fill ~-8 ~ ~-8 ~8 ~6 ~8 air/fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 grass_blockEach block_display is summoned with teleport_duration:2, which tells the Minecraft client to smoothly interpolate rotation changes across 2 ticks.
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.
▶Four-Dimensional Hypercube Tesseract RotationSimulationsExpert24 cmds
▶Automated Siege Defense GauntletSimulationsExpert24 cmds
▶Autonomous Lane Siege DefenseSimulationsExpert24 cmds
▶Supernova Collapse & Black Hole AccretionSimulationsExpert22 cmds
▶Galactic Spiral Arm Collision SimulationSimulationsExpert21 cmds
▶Harmonic Pendulum Wave ArraySimulationsMedium24 cmds