Elastic Physics Sphere with Display Blocks

Build a glowing multi-faceted display block orb driven by a custom scoreboard physics engine that bounces inside a lit glass arena and leaves a bright trail.

Java EditionHolograms & Display EntitiesHard23 commandsTested on a real 26.2 & 26.3 server
A glowing sphere made of rotated display blocks bounces inside a glass arena with a cyan particle trail. Download the GIF Video & GIF © www.9minecraft.net

Animated BlocksTechnologyCyanRainbowWhiteLearningMini-gameDecorationBlock displaysArmor standsSmooth animation (interpolation)Riding & passengersSummoned mobsBlock building (fill/setblock/clone)Sounds21+ commands

This command creation constructs a glowing three-dimensional sphere out of six intersecting rotated block_display entities and drives it with a custom physics engine inside a lit glass arena. The orb falls under gravity, squashes dynamically when impacting the floor, rebounds off the boundary walls, and leaves a colourful particle trail as it travels.

Unlike regular entities, display blocks do not have built-in collision or gravity. By using an invisible armor stand with custom motion vectors and scoreboard math, we can simulate elastic rebounds and deform the display blocks on impact.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_phys dummy
  2. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 minecraft:polished_deepslate
  3. /fill ~-7 ~-1 ~-7 ~7 ~-1 ~7 minecraft:sea_lantern
  4. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 minecraft:tinted_glass
  5. /fill ~-8 ~ ~-8 ~8 ~3 ~8 minecraft:cyan_stained_glass hollow
  6. /fill ~-7 ~ ~-7 ~7 ~3 ~7 minecraft:air
  7. /summon minecraft:armor_stand ~ ~6 ~ {Tags:["c9_all","c9_core"],Invisible:1b,NoBasePlate:1b,Small:1b,Motion:[0.24d,0.1d,0.18d],Passengers:[{id:"minecraft:block_display",Tags:["c9_all","c9_ball"],Glowing:1b,glow_color_override:65535,interpolation_duration:2,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.8f,1.8f],translation:[-0.9f,-0.9f,-0.9f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_ball"],Glowing:1b,glow_color_override:16711935,interpolation_duration:2,block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0.383f,0f,0f,0.924f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.8f,1.8f],translation:[-0.9f,-0.4f,-1.27f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_ball"],Glowing:1b,glow_color_override:65535,interpolation_duration:2,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0.383f,0f,0.924f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.8f,1.8f],translation:[-1.27f,-0.9f,-0.4f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_ball"],Glowing:1b,glow_color_override:16776960,interpolation_duration:2,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0.383f,0.924f],right_rotation:[0f,0f,0f,1f],scale:[1.9f,1.9f,1.9f],translation:[-0.4f,-1.34f,-0.95f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_ball"],Glowing:1b,glow_color_override:16711935,interpolation_duration:2,block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0.354f,0.354f,0.146f,0.854f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.8f,1.8f],translation:[-1.1f,-0.6f,-1.1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_ball"],Glowing:1b,glow_color_override:65535,interpolation_duration:2,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[-0.354f,0.354f,-0.146f,0.854f],right_rotation:[0f,0f,0f,1f],scale:[1.9f,1.9f,1.9f],translation:[-0.6f,-1.1f,-1.1f]}}]}
  8. /scoreboard players set #vx c9_phys 240
  9. /scoreboard players set #vz c9_phys 180

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

  1. /execute as @e[tag=c9_core] store result score #vy c9_phys run data get entity @s Motion[1] 1000
  2. /execute as @e[tag=c9_core] at @s if block ~ ~-0.3 ~ minecraft:tinted_glass run scoreboard players set #vy c9_phys 520
  3. /execute as @e[tag=c9_core] at @s if block ~ ~-0.3 ~ minecraft:sea_lantern run scoreboard players set #vy c9_phys 520
  4. /execute as @e[tag=c9_core] at @s if score #vy c9_phys matches 500.. run particle minecraft:flash ~ ~0.5 ~ 0 0 0 0 1 force
  5. /execute as @e[tag=c9_core] at @s if score #vy c9_phys matches 500.. run playsound minecraft:block.amethyst_block.resonate master @a ~ ~ ~ 1 1.4
  6. /execute as @e[tag=c9_ball] at @s if score #vy c9_phys matches 450.. run data merge entity @s {start_interpolation:0,transformation:{scale:[2.3f,1.1f,2.3f]}}
  7. /execute as @e[tag=c9_ball] at @s if score #vy c9_phys matches ..449 run data merge entity @s {start_interpolation:0,transformation:{scale:[1.8f,1.8f,1.8f]}}
  8. /execute as @e[tag=c9_core] at @s if block ~1.5 ~ ~ minecraft:cyan_stained_glass run scoreboard players set #vx c9_phys -240
  9. /execute as @e[tag=c9_core] at @s if block ~-1.5 ~ ~ minecraft:cyan_stained_glass run scoreboard players set #vx c9_phys 240
  10. /execute as @e[tag=c9_core] at @s if block ~ ~ ~1.5 minecraft:cyan_stained_glass run scoreboard players set #vz c9_phys -180
  11. /execute as @e[tag=c9_core] at @s if block ~ ~ ~-1.5 minecraft:cyan_stained_glass run scoreboard players set #vz c9_phys 180
  12. /execute as @e[tag=c9_core] store result entity @s Motion[0] double 0.001 run scoreboard players get #vx c9_phys
  13. /execute as @e[tag=c9_core] store result entity @s Motion[1] double 0.001 run scoreboard players get #vy c9_phys
  14. /execute as @e[tag=c9_core] at @s store result entity @s Motion[2] double 0.001 run particle minecraft:dust{color:[0.0,1.0,1.0],scale:2.0} ~ ~0.9 ~ 0.3 0.3 0.3 0 8 force

How it works

Frames from the test run

Elastic Physics Sphere with Display Blocks - frame 1Elastic Physics Sphere with Display Blocks - frame 2Elastic Physics Sphere with Display Blocks - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A glowing multi-colored geometric sphere composed of intersecting rotated blocks bounces and deforms across a lit glass arena while leaving a trail of cyan particles.

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 the 9 setup commands in chat or paste them into impulse command blocks.
  2. Watch the lit 17x17 cyan glass arena and the glowing six-piece display sphere appear above the center.
  3. Place 14 repeating command blocks (or 1 repeating block connected to 13 chain command blocks), all set to Always Active.
  4. Paste one loop command into each block in order from 1 to 14.
  5. Note that if you want pure Z-axis wall rebounds alongside the particle trail on command 14, replace the particle command in block 14 with <code>/execute as @e[tag=c9_core] store result entity @s Motion[2] double 0.001 run scoreboard players get #vz c9_phys</code> and run the particle command in an extra chain block.

Use it with real players

To let players kick or deflect the physics sphere around the arena, add a repeating command block with /execute at @p as @e[tag=c9_core,distance=..2.5] run scoreboard players set #vy c9_phys 600 so approaching the orb launches it upward.

Remove it again 4 commands

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

FAQ

Why do the display blocks ride an armor stand instead of teleporting directly?

Mounting the block_display entities as passengers on an invisible armor stand lets Minecraft handle smooth sub-block movement and natural gravity via the Motion tag while keeping all six rotated blocks locked together.

How does the sphere squash when it hits the ground?

When the vertical velocity score jumps above 450 right after a bounce, a data merge command changes the transformation scale of every display block and triggers a 2-tick interpolation before restoring their normal cubic scale.

Commands used

/data/execute/fill/particle/playsound/scoreboard/summon

Similar creations

Join 9Minecraft News & Guides