Build a magical sundial countdown timer in Minecraft where an orbiting miniature sun casts a sweeping shadow hand across twelve glowing hour pillars.
Timers & CountdownsMedievalMysticFireGoldOrangeCyanServer LobbyMini-gameDecorationBlock displaysItem displaysText displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
Digital scoreboard timers often feel out of place inside medieval plazas or fantasy temples. This command creation turns your countdown into a physical spectacle: a miniature blazing sun orbits high above a dark prismarine and gold dial while casting a dynamic block-display shadow directly opposite its position across a central obelisk.
As the shadow hand sweeps around the dial, it passes twelve quartz hour markers topped with floating golden symbols, igniting each pillar with a burst of blue soul fire as time ticks by.
/scoreboard objectives add c9_tick dummy/fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 minecraft:chiseled_quartz_block/fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 minecraft:dark_prismarine/fill ~-7 ~-1 ~ ~7 ~-1 ~ minecraft:gold_block replace minecraft:dark_prismarine/fill ~ ~-1 ~-7 ~ ~-1 ~7 minecraft:gold_block replace minecraft:dark_prismarine/fill ~ ~ ~ ~ ~4 ~ minecraft:gold_block/setblock ~ ~5 ~ minecraft:sea_lantern/summon minecraft:block_display ~ ~0.03 ~ {Tags:["c9_ent","c9_shadow"],teleport_duration:1,block_state:{Name:"minecraft:obsidian"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.7f,0.08f,6.6f],translation:[-0.35f,0f,0f]}}/summon minecraft:item_display ~ ~7 ~-6.5 {Tags:["c9_ent","c9_sun"],teleport_duration:1,Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},item:{id:"minecraft:magma_block",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.8f,1.8f],translation:[0f,0f,0f]}}/summon minecraft:marker ~ ~ ~ {Tags:["c9_ent","c9_pivot"]}/execute unless score #spawned c9_tick matches 12.. run scoreboard players add #spawned c9_tick 1/execute if score #spawned c9_tick matches 1..12 as @e[tag=c9_pivot,limit=1] store result entity @s Rotation[0] float 30.0 run scoreboard players get #spawned c9_tick/execute if score #spawned c9_tick matches 1..12 at @e[tag=c9_pivot,limit=1] rotated ~ 0 positioned ^ ^ ^6.2 run summon minecraft:text_display ~ ~1.3 ~ {Tags:["c9_ent","c9_num"],billboard:"center",background:0,brightness:{sky:15,block:15},text:{"text":"◈","color":"gold"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[2.6f,2.6f,2.6f],translation:[0f,0f,0f]}}/execute if score #spawned c9_tick matches 1..12 at @e[tag=c9_pivot,limit=1] rotated ~ 0 positioned ^ ^ ^6.2 run setblock ~ ~ ~ minecraft:quartz_pillar/scoreboard players add #timer c9_tick 1/execute if score #timer c9_tick matches 120.. run scoreboard players set #timer c9_tick 0/execute as @e[tag=c9_pivot,limit=1] store result entity @s Rotation[0] float 3.0 run scoreboard players get #timer c9_tick/execute as @e[tag=c9_shadow,limit=1] at @e[tag=c9_pivot,limit=1] rotated ~ 0 run tp @s ~ ~0.03 ~ ~ 0/execute at @e[tag=c9_pivot,limit=1] rotated ~ 0 positioned ^ ^7 ^-6.5 as @e[tag=c9_sun,limit=1] run tp @s ~ ~ ~/execute at @e[tag=c9_sun] run particle minecraft:flame ~ ~ ~ 0.45 0.45 0.45 0.03 10 force/execute at @e[tag=c9_sun] run particle minecraft:end_rod ~ ~ ~ 0.3 0.3 0.3 0.02 4 force/execute at @e[tag=c9_pivot,limit=1] rotated ~ 0 positioned ^ ^ ^6.2 if entity @e[tag=c9_num,distance=..1.5] run particle minecraft:soul_fire_flame ~ ~1.0 ~ 0.2 0.45 0.2 0.03 20 force/execute at @e[tag=c9_pivot,limit=1] rotated ~ 0 positioned ^ ^0.1 ^3.3 run particle minecraft:dust{color:[0.1,0.1,0.15],scale:1.5} ~ ~ ~ 0.15 0.02 0.15 0.01 5 force/execute at @e[tag=c9_pivot,limit=1] rotated ~ 0 positioned ^ ^5.3 ^ run particle minecraft:enchant ~ ~ ~ 0.4 0.4 0.4 0.5 8 forcesetup #8 Summons an obsidian <code>block_display</code> stretched 6.6 blocks along the Z axis and flattened to 0.08 blocks tall, acting as the sweeping shadow hand.loop #2 During the first 12 ticks, steps the central pivot marker around a full circle in 30-degree increments so the next two commands can place the 12 quartz hour pillars and glowing symbols.loop #7 Multiplies the <code>#timer</code> score (0 to 120) by 3.0 and stores it directly into the pivot marker's yaw rotation, driving a smooth 360-degree revolution every 6 seconds.loop #9 Teleports the glowing magma sun to <code>^ ^7 ^-6.5</code> relative to the pivot marker so it stays directly opposite the shadow hand.loop #12 Checks if the tip of the shadow at <code>^ ^ ^6.2</code> is passing an hour marker and triggers a column of blue soul fire flames.


Recorded on our own test server: 54 frames at about 8.9 fps. Our image check saw: A shadow hand sweeps around a sundial plaza while a magma sun orbits with a fiery trail.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To use this as a customizable game timer instead of a 6-second continuous demo, change the scale factor in loop command 7 from 3.0 to 360 divided by your desired tick duration (for example, 0.3 for a 60-second timer of 1200 ticks), and only increment #timer c9_tick while a game-active tag or score is set.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_tick/fill ~-8 ~ ~-8 ~8 ~6 ~8 minecraft:air/fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 minecraft:grass_blockAdjust the reset limit in loop command 6 (currently 120 ticks, or 6 seconds) and the rotation multiplier in loop command 7 so that the limit multiplied by the scale equals 360.
Both the shadow block display and the sun item display have teleport_duration set to 1 in their NBT, which tells the Minecraft client to smoothly interpolate their rotation and movement.
▶Incense Dragon-Boat Ash-Drop Match TimerTimers & CountdownsMedium24 cmds
▶Melting Wax Candle Sudden-Death TimerTimers & CountdownsMedium24 cmds
▶Ouroboros Tail-Devouring Stone Serpent TimerTimers & CountdownsExpert23 cmds
▶Pendulum Grandfather Clock Deathmatch TimerTimers & CountdownsMedium24 cmds
▶Burning Fuse Powder Keg TimerTimers & CountdownsMedium21 cmds
▶Time-Reversing TNTTimers & CountdownsEasy24 cmds