Foucault's Pendulum Sand-Carving Clock

Build a working Foucault's Pendulum beneath a golden arch that swings in a rotating plane, carves glowing sand trails, and topples perimeter dominoes.

Java EditionMini-games & UtilitiesMedium23 commandsTested on a real 26.2 & 26.3 server
A glowing golden pendulum swings across a sand basin ringed by gilded blackstone pegs at night. Download the GIF Video & GIF © www.9minecraft.net

Clocks & CalendarsRoyalTechnologyMysticGoldYellowBlackDecorationServer LobbyLearningParticlesBlock displaysArmor standsSmooth animation (interpolation)Scoreboard timersExecute chainsRiding & passengersSummoned mobsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

This command creation builds a giant Foucault's Pendulum suspended beneath an ornate golden and gilded blackstone arch. A multi-part glowing brass bob and sharp needle sweep back and forth across a sand basin while a taut particle cable connects the bob up to the apex.

As the plane of oscillation slowly rotates around the dial, the needle carves glowing golden grooves into the sand and knocks over a ring of glowing gilded monoliths one by one.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:polished_blackstone_bricks
  3. /fill ~-7 ~-1 ~-7 ~7 ~-1 ~7 minecraft:sand
  4. /fill ~-9 ~ ~-1 ~-8 ~16 ~1 minecraft:gilded_blackstone
  5. /fill ~8 ~ ~-1 ~9 ~16 ~1 minecraft:gilded_blackstone
  6. /fill ~-9 ~16 ~-1 ~9 ~17 ~1 minecraft:gold_block
  7. /setblock ~ ~15 ~ minecraft:sea_lantern
  8. /summon minecraft:armor_stand ~ ~1 ~ {Tags:["c9_piv"],Invisible:1b,NoGravity:1b,Rotation:[0f,0f]}
  9. /summon minecraft:block_display ~ ~2 ~ {Tags:["c9_bob"],Glowing:1b,glow_color_override:16766720,teleport_duration:1,block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0.353f,0.353f,0.146f,0.853f],right_rotation:[0f,0f,0f,1f],scale:[2.2f,2.2f,2.2f],translation:[-1.1f,-0.5f,-1.1f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_tip"],Glowing:1b,glow_color_override:16777045,block_state:{Name:"minecraft:lightning_rod"},transformation:{left_rotation:[1f,0f,0f,0f],right_rotation:[0f,0f,0f,1f],scale:[1.5f,2.8f,1.5f],translation:[-0.75f,0.5f,0.75f]}}]}

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

  1. /scoreboard players add #c9_clk c9_t 1
  2. /execute if score #c9_clk c9_t matches 32.. run scoreboard players set #c9_clk c9_t 0
  3. /execute as @e[tag=c9_piv] at @s run tp @s ~ ~ ~ ~2.2 ~
  4. /execute if score #c9_clk c9_t matches 0..7 as @e[tag=c9_bob] at @s rotated as @e[tag=c9_piv,limit=1] rotated ~ 0 run tp @s ^ ^0.18 ^0.82 ~ ~
  5. /execute if score #c9_clk c9_t matches 8..15 as @e[tag=c9_bob] at @s rotated as @e[tag=c9_piv,limit=1] rotated ~ 0 run tp @s ^ ^-0.18 ^-0.82 ~ ~
  6. /execute if score #c9_clk c9_t matches 16..23 as @e[tag=c9_bob] at @s rotated as @e[tag=c9_piv,limit=1] rotated ~ 0 run tp @s ^ ^0.18 ^-0.82 ~ ~
  7. /execute if score #c9_clk c9_t matches 24..31 as @e[tag=c9_bob] at @s rotated as @e[tag=c9_piv,limit=1] rotated ~ 0 run tp @s ^ ^-0.18 ^0.82 ~ ~
  8. /execute if score #c9_clk c9_t matches 16 at @e[tag=c9_piv] rotated ~ 0 run tp @e[tag=c9_bob,limit=1] ~ ~2 ~ ~ ~
  9. /execute at @e[tag=c9_piv,limit=1] rotated ~ 0 positioned ^ ^-1 ^6.6 unless entity @e[tag=c9_dom,distance=..1.8] run summon minecraft:block_display ~ ~ ~ {Tags:["c9_dom","c9_up"],Glowing:1b,glow_color_override:16755200,interpolation_duration:8,block_state:{Name:"minecraft:gilded_blackstone"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.7f,2.6f,0.7f],translation:[-0.35f,0f,-0.35f]}}
  10. /execute at @e[tag=c9_bob] run particle minecraft:dust{color:[1.0,0.8,0.1],scale:2.2} ~ ~-1.6 ~ 0.2 0.05 0.2 0 10 force
  11. /execute at @e[tag=c9_bob] facing ~ ~15 ~ positioned ^ ^ ^2.5 run particle minecraft:end_rod ^ ^ ^ 0.05 0.5 0.05 0 4 force
  12. /execute at @e[tag=c9_bob] as @e[tag=c9_up,distance=..2.6] at @s run data merge entity @s {Tags:["c9_dom","c9_fall"],start_interpolation:0,glow_color_override:16724787,transformation:{left_rotation:[0.707f,0f,0f,0.707f],right_rotation:[0f,0f,0f,1f],scale:[0.7f,2.6f,0.7f],translation:[-0.35f,0f,-0.35f]}}
  13. /scoreboard players add @e[tag=c9_fall] c9_t 1
  14. /kill @e[tag=c9_fall,scores={c9_t=50..}]

How it works

Frames from the test run

Foucault's Pendulum Sand-Carving Clock - frame 1Foucault's Pendulum Sand-Carving Clock - frame 2Foucault's Pendulum Sand-Carving Clock - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A large glowing gold pendulum bob swings across a sand basin surrounded by glowing gilded blackstone markers beneath two large pillars, leaving yellow particles on the sand.

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 open area and run each command from the Setup list in chat one by one.
  2. Notice the golden arch, sand basin, and glowing brass pendulum bob appear at the center.
  3. Place a line of 14 Repeating Command Blocks set to Always Active nearby.
  4. Paste one command from the Loop list into each repeating command block in order.
  5. Watch the pendulum swing in a parabolic arc, carve golden dust into the sand, and knock over the ring of gilded pillars.

Remove it again 7 commands

  1. /kill @e[tag=c9_piv]
  2. /kill @e[tag=c9_bob]
  3. /kill @e[tag=c9_tip]
  4. /kill @e[tag=c9_dom]
  5. /scoreboard objectives remove c9_t
  6. /fill ~-9 ~ ~-9 ~9 ~17 ~9 minecraft:air
  7. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:grass_block

FAQ

How can I change the speed of the pendulum's rotation around the dial?

In the 3rd loop command, adjust the yaw rotation value in <code>tp @s ~ ~ ~ ~2.2 ~</code>. A smaller number like <code>~0.5</code> makes the plane of oscillation precess much more slowly.

Why doesn't the pendulum drift off center over time?

The 8th loop command re-centers the bob directly over the pivot at tick 16 (the middle of each full period), preventing floating-point drift while keeping the motion smooth.

Commands used

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

Similar creations

Join 9Minecraft News & Guides