Build a magical carved sundial with an orbiting miniature sun that casts a physical sweeping shadow, erupting with dark-matter spikes and solar rays.
Dark & Shadow MagicDarkHoly & LightSpaceYellowBlackPurpleBoss FightAdventure MapDecorationBlock displaysArmor standsSmooth animation (interpolation)Riding & passengersBlock building (fill/setblock/clone)Rotation math21+ commands
The Celestial Sundial Shadow Weaver constructs an ancient stone and gold sundial powered by an orbiting miniature star. As the artificial sun circles overhead, it projects a physical, sweeping shadow across the dial opposite its position.
Wherever the shadow passes, jagged spikes of obsidian and crying obsidian erupt from the ground in a rotating wave of dark energy, accompanied by glowing solar dust and portal particles.
/scoreboard objectives add c9_tick dummy/fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 polished_deepslate/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 chiseled_polished_blackstone/fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 gilded_blackstone/fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 smooth_quartz/setblock ~-6 ~ ~-6 chiseled_deepslate/setblock ~6 ~ ~-6 chiseled_deepslate/setblock ~-6 ~ ~6 chiseled_deepslate/setblock ~6 ~ ~6 chiseled_deepslate/summon armor_stand ~ ~ ~ {Invisible:1b,NoGravity:1b,Marker:1b,Tags:["c9_all","c9_pivot"],Passengers:[{id:"minecraft:block_display",Tags:["c9_all","c9_gnomon"],block_state:{Name:"minecraft:gold_block"},Glowing:1b,glow_color_override:16755200,transformation:{translation:[-0.35f,0.0f,-0.35f],scale:[0.7f,3.8f,0.7f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_sun"],brightness:{sky:15,block:15},Glowing:1b,glow_color_override:16766720,block_state:{Name:"minecraft:ochre_froglight"},transformation:{translation:[-0.6f,5.0f,-5.6f],scale:[1.2f,1.2f,1.2f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_shadow"],block_state:{Name:"minecraft:black_concrete"},transformation:{translation:[-0.45f,0.02f,0.0f],scale:[0.9f,0.08f,6.5f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}]}/execute as @e[tag=c9_pivot] at @s run tp @s ~ ~ ~ ~4 ~/scoreboard players add @e[tag=c9_pivot] c9_tick 1/scoreboard players add @e[tag=c9_spike] c9_tick 1/execute as @e[tag=c9_pivot] at @s anchored feet positioned ^ ^5.6 ^-5.0 run particle flame ~ ~ ~ 0.35 0.35 0.35 0.02 6 force/execute as @e[tag=c9_pivot] at @s anchored feet positioned ^ ^5.6 ^-5.0 run particle dust{color:[1.0,0.85,0.2],scale:1.8} ~ ~ ~ 0.4 0.4 0.4 0 4 force/execute as @e[tag=c9_pivot] at @s anchored feet positioned ^ ^4.7 ^-2.5 run particle end_rod ~ ~ ~ 0.1 0.1 0.1 0.01 2 force/execute as @e[tag=c9_pivot] at @s anchored feet positioned ^ ^3.8 ^0.0 run particle dust{color:[1.0,0.6,0.1],scale:1.2} ~ ~ ~ 0.2 0.2 0.2 0 3 force/execute as @e[tag=c9_pivot] at @s anchored feet positioned ^ ^0.1 ^3.5 run particle squid_ink ~ ~ ~ 0.3 0.05 1.2 0.01 4 force/execute as @e[tag=c9_pivot] at @s anchored feet positioned ^ ^0.2 ^4.5 run particle reverse_portal ~ ~ ~ 0.4 0.2 0.4 0.05 6 force/execute as @e[tag=c9_pivot,scores={c9_tick=1}] at @s anchored feet positioned ^ ^ ^2.2 run summon block_display ~ ~ ~ {Tags:["c9_all","c9_spike"],Glowing:1b,glow_color_override:5570730,block_state:{Name:"minecraft:obsidian"},transformation:{translation:[-0.35f,0.0f,-0.35f],scale:[0.7f,0.1f,0.7f],left_rotation:[0.15f,0.1f,-0.1f,0.98f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}/execute as @e[tag=c9_pivot,scores={c9_tick=2}] at @s anchored feet positioned ^ ^ ^4.0 run summon block_display ~ ~ ~ {Tags:["c9_all","c9_spike"],Glowing:1b,glow_color_override:7864520,block_state:{Name:"minecraft:crying_obsidian"},transformation:{translation:[-0.35f,0.0f,-0.35f],scale:[0.6f,0.1f,0.6f],left_rotation:[-0.1f,0.2f,0.15f,0.96f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}/execute as @e[tag=c9_pivot,scores={c9_tick=3..}] at @s anchored feet positioned ^ ^ ^5.6 run summon block_display ~ ~ ~ {Tags:["c9_all","c9_spike"],Glowing:1b,glow_color_override:3342430,block_state:{Name:"minecraft:obsidian"},transformation:{translation:[-0.3f,0.0f,-0.3f],scale:[0.5f,0.1f,0.5f],left_rotation:[0.18f,-0.1f,0.12f,0.97f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}/execute as @e[tag=c9_pivot,scores={c9_tick=3..}] run scoreboard players set @s c9_tick 0/execute as @e[tag=c9_spike,scores={c9_tick=1}] run data merge entity @s {start_interpolation:0,interpolation_duration:6,transformation:{translation:[-0.25f,0.0f,-0.25f],scale:[0.5f,3.2f,0.5f],left_rotation:[0.15f,0.2f,-0.1f,0.96f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}/execute as @e[tag=c9_spike,scores={c9_tick=18}] run data merge entity @s {start_interpolation:0,interpolation_duration:7,transformation:{translation:[0.0f,0.0f,0.0f],scale:[0.01f,0.01f,0.01f],left_rotation:[0.15f,0.2f,-0.1f,0.96f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}/kill @e[tag=c9_spike,scores={c9_tick=26..}]setup #10 Summons the central invisible armor stand pivot with three block_display passengers: the golden gnomon pillar at the center, the glowing miniature sun offset forward and up, and the elongated black concrete shadow beam stretched opposite the sun.loop #1 Rotates the central pivot armor stand by 4 degrees every tick. Because display entities inherit yaw rotation when riding an armor stand or aligned via local coordinates, the sun and shadow sweep smoothly around the dial.loop #10 Uses local coordinates (^ ^ ^2.2, ^4.0, and ^5.6) along the shadow's direction to stagger the summoning of tilted obsidian and crying obsidian spike displays every tick.loop #14 Triggers smooth display interpolation on newly spawned spikes so they shoot upward to 3.2 blocks tall over 6 ticks, then shrink back into the ground at 18 ticks before being removed at 26 ticks.


Recorded on our own test server: 49 frames at about 9.6 fps. Our image check saw: A glowing yellow block orbits a stone sundial with a gold center, casting a rotating black shadow that spawns purple-outlined obsidian spikes opposite the sun.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To turn this into a player-cast dark magic spell or weapon ability, summon the c9_pivot entity when a player drops or right-clicks a custom clock item, and add a command to the loop: /execute at @e[tag=c9_spike,scores={c9_tick=4}] run damage @e[distance=..1.8,type=!player,tag=!c9_all] 4 minecraft:magic so the erupting shadow spikes damage nearby monsters.
/kill @e[tag=c9_all]/scoreboard objectives remove c9_tick/fill ~-6 ~ ~-6 ~6 ~ ~6 air/fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 grass_blockOnly one spike is summoned per tick and each spike is automatically deleted after 26 ticks (1.3 seconds), meaning there are never more than 26 spike entities alive at any moment.
Yes! In the very first loop command, change ~4 ~ at the end of the /tp command to a smaller number like ~2 ~ for a slower orbit or ~8 ~ for a faster spin.
/data/execute/fill/kill/particle/scoreboard/setblock/summon/tp
▶Solar Eclipse Corona AlignmentDark & Shadow MagicMedium24 cmds
▶Spectral Chariot Comet TrailDark & Shadow MagicExpert23 cmds
▶Void Singularity SphereDark & Shadow MagicMedium20 cmds
▶Gravitational Debris Singularity SpellDark & Shadow MagicExpert24 cmds
▶Eldritch Inkblot Rorschach AwakeningDark & Shadow MagicHard23 cmds
▶Gorgon's Petrifying Gaze SweepDark & Shadow MagicHard22 cmds