Sundial Shadow-Sweep Fast-Forward Timer

Build a magical sundial countdown timer in Minecraft where an orbiting miniature sun casts a sweeping shadow hand across twelve glowing hour pillars.

Java EditionMini-games & UtilitiesMedium24 commandsTested on a real 26.2 & 26.3 server
Shadow hand sweeping a sundial as a magma sun orbits Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 minecraft:chiseled_quartz_block
  3. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 minecraft:dark_prismarine
  4. /fill ~-7 ~-1 ~ ~7 ~-1 ~ minecraft:gold_block replace minecraft:dark_prismarine
  5. /fill ~ ~-1 ~-7 ~ ~-1 ~7 minecraft:gold_block replace minecraft:dark_prismarine
  6. /fill ~ ~ ~ ~ ~4 ~ minecraft:gold_block
  7. /setblock ~ ~5 ~ minecraft:sea_lantern
  8. /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]}}
  9. /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]}}
  10. /summon minecraft:marker ~ ~ ~ {Tags:["c9_ent","c9_pivot"]}

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

  1. /execute unless score #spawned c9_tick matches 12.. run scoreboard players add #spawned c9_tick 1
  2. /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
  3. /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]}}
  4. /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
  5. /scoreboard players add #timer c9_tick 1
  6. /execute if score #timer c9_tick matches 120.. run scoreboard players set #timer c9_tick 0
  7. /execute as @e[tag=c9_pivot,limit=1] store result entity @s Rotation[0] float 3.0 run scoreboard players get #timer c9_tick
  8. /execute as @e[tag=c9_shadow,limit=1] at @e[tag=c9_pivot,limit=1] rotated ~ 0 run tp @s ~ ~0.03 ~ ~ 0
  9. /execute at @e[tag=c9_pivot,limit=1] rotated ~ 0 positioned ^ ^7 ^-6.5 as @e[tag=c9_sun,limit=1] run tp @s ~ ~ ~
  10. /execute at @e[tag=c9_sun] run particle minecraft:flame ~ ~ ~ 0.45 0.45 0.45 0.03 10 force
  11. /execute at @e[tag=c9_sun] run particle minecraft:end_rod ~ ~ ~ 0.3 0.3 0.3 0.02 4 force
  12. /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
  13. /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
  14. /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 force

How it works

Frames from the test run

Sundial Shadow-Sweep Fast-Forward Timer - frame 1Sundial Shadow-Sweep Fast-Forward Timer - frame 2Sundial Shadow-Sweep Fast-Forward Timer - frame 3

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.

Build it in your world

  1. Stand at the center of a flat area where you want the sundial plaza to appear.
  2. Run each of the 10 setup commands once in chat or from impulse command blocks relative to that center point.
  3. Place a line of 14 repeating command blocks (or 1 repeating followed by 13 chain command blocks), all set to Always Active.
  4. Paste the 14 loop commands into those blocks in order, making sure they execute positioned at the center of the sundial.
  5. Watch the 12 hour pillars automatically generate around the rim as the sun begins its orbit.

Use it with real players

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.

Remove it again 4 commands

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

FAQ

How do I change the speed of the sundial countdown?

Adjust 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.

Why does the shadow move so smoothly between ticks?

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.

Commands used

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

Similar creations

Join 9Minecraft News & Guides