Tumbling Gravity Cube

A glowing chiseled copper cube rolls down a stone staircase using live block-sensing physics, vaults over a hurdle, and bounces back up on a slime pad.

Java EditionHolograms & Display EntitiesMedium24 commandsTested on a real 26.2 & 26.3 server
A glowing chiseled copper cube tumbles down a stone brick staircase toward a slime block platform. Download the GIF Video & GIF © www.9minecraft.net

Animated BlocksTechnologyIndustrialOrangeGreenLearningMap MakingDecorationItem displaysArmor standsSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)21+ commands

The Tumbling Gravity Cube brings a chiseled copper block to life on a four-tier stone staircase. Instead of following a fixed keyframe animation, an invisible physics carrier senses blocks directly in front of and beneath the cube in real time. As it rolls forward, it detects a waxed copper hurdle and leaps over it, drops down each step with real gravity, and hits a slime launcher at the bottom that flings it all the way back to the top ledge in a continuous loop.

An interpolated item_display rides the physics carrier, smoothly rotating on its axis while shedding orange copper sparks and bright wax particles along the stairs.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9 dummy
  2. /fill ~-6 ~0 ~-2 ~6 ~0 ~2 minecraft:polished_deepslate
  3. /fill ~4 ~1 ~-1 ~5 ~1 ~1 minecraft:slime_block
  4. /fill ~-5 ~1 ~-1 ~-3 ~4 ~1 minecraft:stone_bricks
  5. /fill ~-2 ~1 ~-1 ~0 ~3 ~1 minecraft:cracked_stone_bricks
  6. /setblock ~-1 ~4 ~0 minecraft:waxed_copper_block
  7. /fill ~1 ~1 ~-1 ~2 ~2 ~1 minecraft:mossy_stone_bricks
  8. /fill ~3 ~1 ~-1 ~3 ~1 ~1 minecraft:chiseled_stone_bricks
  9. /summon minecraft:armor_stand ~-4.0 ~5.0 ~0.5 {Tags:["c9_phys"],Invisible:1b,Invulnerable:1b,Silent:1b,Small:1b}
  10. /summon minecraft:item_display ~-4.0 ~5.65 ~0.5 {Tags:["c9_cube"],item:{id:"minecraft:chiseled_copper",count:1},Glowing:1b,glow_color_override:16744448,teleport_duration:1,interpolation_duration:3,brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.3f,1.3f,1.3f]}}

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

  1. /execute as @e[tag=c9_phys,limit=1] at @s unless block ~ ~-0.15 ~ minecraft:air run particle minecraft:dust{color:[1.0,0.55,0.05],scale:1.8} ~ ~0.1 ~ 0.35 0.08 0.35 0.02 6
  2. /execute as @e[tag=c9_phys,limit=1] at @s run particle minecraft:wax_on ~ ~0.65 ~ 0.25 0.25 0.25 0.02 2
  3. /execute as @e[tag=c9_phys,limit=1] at @s unless block ~ ~-0.15 ~ minecraft:air unless block ~ ~-0.3 ~ minecraft:slime_block run data modify entity @s Motion[0] set value 0.17d
  4. /execute as @e[tag=c9_phys,limit=1] at @s if block ~ ~-0.15 ~ minecraft:air unless block ~ ~-1.6 ~ minecraft:air run data modify entity @s Motion[0] set value 0.17d
  5. /execute as @e[tag=c9_phys,limit=1] at @s unless block ~ ~-0.15 ~ minecraft:air unless block ~0.85 ~0.2 ~0 minecraft:air run data modify entity @s Motion set value [0.19d,0.48d,0.0d]
  6. /execute as @e[tag=c9_phys,limit=1] at @s if block ~ ~-0.3 ~ minecraft:slime_block run data modify entity @s Motion set value [-0.62d,0.98d,0.0d]
  7. /execute as @e[tag=c9_phys,limit=1] at @s if block ~ ~-0.3 ~ minecraft:slime_block run particle minecraft:poof ~ ~0.5 ~ 0.3 0.2 0.3 0.05 8
  8. /execute as @e[tag=c9_phys,limit=1] at @s if block ~ ~-0.3 ~ minecraft:polished_deepslate run tp @s ~-4.0 ~5.0 ~0.5
  9. /execute as @e[tag=c9_cube,limit=1] at @e[tag=c9_phys,limit=1] run tp @s ~ ~0.65 ~
  10. /scoreboard players add #rot c9 1
  11. /execute if score #rot c9 matches 12.. run scoreboard players set #rot c9 0
  12. /execute if score #rot c9 matches 0 run data merge entity @e[tag=c9_cube,limit=1] {start_interpolation:0,interpolation_duration:4,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.3f,1.3f,1.3f]}}
  13. /execute if score #rot c9 matches 4 run data merge entity @e[tag=c9_cube,limit=1] {start_interpolation:0,interpolation_duration:4,transformation:{left_rotation:[0f,0f,-0.866f,0.5f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.3f,1.3f,1.3f]}}
  14. /execute if score #rot c9 matches 8 run data merge entity @e[tag=c9_cube,limit=1] {start_interpolation:0,interpolation_duration:4,transformation:{left_rotation:[0f,0f,-0.866f,-0.5f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.3f,1.3f,1.3f]}}

How it works

Frames from the test run

Tumbling Gravity Cube - frame 1Tumbling Gravity Cube - frame 2Tumbling Gravity Cube - frame 3

Recorded on our own test server: 58 frames at about 9.5 fps. Our image check saw: A glowing chiseled copper block tumbles and rotates down a tiered stone brick staircase toward green slime blocks at the base.

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 where you want the staircase to appear.
  2. Run the 10 setup commands in order to build the stone brick staircase, waxed copper hurdle, slime launcher, and summon the cube.
  3. Place a repeating command block set to Always Active at the same center origin (or wrap a chain with execute positioned at the center).
  4. Chain the 14 loop commands in Always Active chain command blocks connected to the repeating block.
  5. Watch the cube roll down the stairs, jump the copper hurdle, and bounce off the slime pad back to the top.
  6. Try placing extra blocks on the steps to see the block-sensor jump over them dynamically.

Use it with real players

You can make the cube chase or follow a player along the X axis by replacing the fixed 0.17d forward motion in loop command 3 with a condition checking if @p is to the east or west of @s, or let players place waxed copper blocks anywhere on the stairs to test its live obstacle-jumping reflex.

Remove it again 4 commands

  1. /kill @e[tag=c9_phys]
  2. /kill @e[tag=c9_cube]
  3. /fill ~-6 ~0 ~-2 ~6 ~5 ~2 minecraft:air
  4. /scoreboard objectives remove c9

FAQ

Why use an armor stand and an item_display together instead of just one entity?

Display entities do not have built-in gravity or block collision, while armor stands cannot smoothly interpolate 3D rotations. Combining an invisible armor stand for physics with an item_display for visuals gives you real gravity and smooth tumbling.

Can I change the block the cube is made of?

Yes! Change minecraft:chiseled_copper in the last setup command to any block item ID you like, such as minecraft:sea_lantern or minecraft:amethyst_block.

Commands used

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

Similar creations

Join 9Minecraft News & Guides