Celestial Sundial Shadow Weaver

Build a magical carved sundial with an orbiting miniature sun that casts a physical sweeping shadow, erupting with dark-matter spikes and solar rays.

Java EditionMagic & SpellsMedium26 commandsTested on a real 26.2 & 26.3 server
An orbiting miniature sun casts a shadow across a sundial, raising dark obsidian spikes. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 polished_deepslate
  3. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 chiseled_polished_blackstone
  4. /fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 gilded_blackstone
  5. /fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 smooth_quartz
  6. /setblock ~-6 ~ ~-6 chiseled_deepslate
  7. /setblock ~6 ~ ~-6 chiseled_deepslate
  8. /setblock ~-6 ~ ~6 chiseled_deepslate
  9. /setblock ~6 ~ ~6 chiseled_deepslate
  10. /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]}}]}

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

  1. /execute as @e[tag=c9_pivot] at @s run tp @s ~ ~ ~ ~4 ~
  2. /scoreboard players add @e[tag=c9_pivot] c9_tick 1
  3. /scoreboard players add @e[tag=c9_spike] c9_tick 1
  4. /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
  5. /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
  6. /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
  7. /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
  8. /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
  9. /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
  10. /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]}}
  11. /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]}}
  12. /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]}}
  13. /execute as @e[tag=c9_pivot,scores={c9_tick=3..}] run scoreboard players set @s c9_tick 0
  14. /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]}}
  15. /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]}}
  16. /kill @e[tag=c9_spike,scores={c9_tick=26..}]

How it works

Frames from the test run

Celestial Sundial Shadow Weaver - frame 1Celestial Sundial Shadow Weaver - frame 2Celestial Sundial Shadow Weaver - frame 3

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.

Build it in your world

  1. Find a flat open area and run the 10 setup commands in chat while standing at the center of your stage.
  2. Notice the layered blackstone, gold, and quartz sundial base appear along with the central golden pillar, miniature sun, and shadow beam.
  3. Place a line or stack of 16 Repeating Command Blocks set to Always Active near your build.
  4. Paste one loop command into each repeating command block in order.
  5. Switch the time to night or sunset for the best contrast between the glowing golden sun and purple-outlined dark-matter spikes.

Use it with real players

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.

Remove it again 4 commands

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

FAQ

Why don't the spikes lag the game if they spawn every tick?

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

Can I change the speed of the orbiting sun and shadow?

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.

Commands used

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

Similar creations

Join 9Minecraft News & Guides