Colossal Self-Playing Keyboard

Build a giant automated fourteen-key grand synthesizer in Minecraft using block display entities that physically press down, glow, and play a looping arpeggio.

Java EditionHolograms & Display EntitiesHard24 commandsTested on a real 26.2 & 26.3 server
A giant Minecraft piano keyboard plays itself, with pressed keys tilting down and glowing like sea lanterns. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsMusicTechnologyCelebrationWhiteBlackCyanDecorationServer LobbyCinematicBlock displaysSmooth animation (interpolation)Riding & passengersBlock building (fill/setblock/clone)21+ commands

The Colossal Self-Playing Keyboard transforms a simple platform into an automated electronic concert stage. Using scaled block display entities with smooth interpolation, a fourteen-key grand synthesizer physically presses its own white and black keys in real time to perform an endlessly looping arpeggio.

Each time a key is pressed, it tilts downward, lights up with a glowing sea lantern texture, emits musical notes and colorful particle bursts, and plays multi-layered synthesizer chords.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-9 ~ ~-5 ~9 ~ ~4 polished_blackstone
  3. /fill ~-8 ~1 ~-4 ~8 ~5 ~-2 black_concrete
  4. /fill ~-8 ~3 ~-2 ~8 ~4 ~-2 sea_lantern
  5. /fill ~-8 ~1 ~-1 ~8 ~1 ~3 nether_bricks
  6. /summon marker ~ ~1 ~ {Tags:["c9_m","c9_ctrl"]}
  7. /summon block_display ~-7 ~2 ~-1 {Tags:["c9_m","c9_key","c9_w","c9_k0"],block_state:{Name:"minecraft:quartz_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1f,4.5f],translation:[0f,0f,0f]},interpolation_duration:2,Passengers:[{id:"minecraft:block_display",Tags:["c9_m","c9_key","c9_w","c9_k1"],block_state:{Name:"minecraft:quartz_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1f,4.5f],translation:[2f,0f,0f]},interpolation_duration:2},{id:"minecraft:block_display",Tags:["c9_m","c9_key","c9_w","c9_k2"],block_state:{Name:"minecraft:quartz_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1f,4.5f],translation:[4f,0f,0f]},interpolation_duration:2},{id:"minecraft:block_display",Tags:["c9_m","c9_key","c9_w","c9_k3"],block_state:{Name:"minecraft:quartz_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1f,4.5f],translation:[6f,0f,0f]},interpolation_duration:2}]}
  8. /summon block_display ~-7 ~2 ~-1 {Tags:["c9_m","c9_key","c9_w","c9_k4"],block_state:{Name:"minecraft:quartz_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1f,4.5f],translation:[8f,0f,0f]},interpolation_duration:2,Passengers:[{id:"minecraft:block_display",Tags:["c9_m","c9_key","c9_w","c9_k5"],block_state:{Name:"minecraft:quartz_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1f,4.5f],translation:[10f,0f,0f]},interpolation_duration:2},{id:"minecraft:block_display",Tags:["c9_m","c9_key","c9_w","c9_k6"],block_state:{Name:"minecraft:quartz_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1f,4.5f],translation:[12f,0f,0f]},interpolation_duration:2},{id:"minecraft:block_display",Tags:["c9_m","c9_key","c9_w","c9_k7"],block_state:{Name:"minecraft:quartz_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1f,4.5f],translation:[14f,0f,0f]},interpolation_duration:2}]}
  9. /summon block_display ~-7 ~2.6 ~-1.1 {Tags:["c9_m","c9_key","c9_b","c9_b0"],block_state:{Name:"minecraft:blackstone"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,0.9f,2.8f],translation:[1.35f,0f,0f]},interpolation_duration:2,Passengers:[{id:"minecraft:block_display",Tags:["c9_m","c9_key","c9_b","c9_b1"],block_state:{Name:"minecraft:blackstone"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,0.9f,2.8f],translation:[3.35f,0f,0f]},interpolation_duration:2},{id:"minecraft:block_display",Tags:["c9_m","c9_key","c9_b","c9_b2"],block_state:{Name:"minecraft:blackstone"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,0.9f,2.8f],translation:[7.35f,0f,0f]},interpolation_duration:2},{id:"minecraft:block_display",Tags:["c9_m","c9_key","c9_b","c9_b3"],block_state:{Name:"minecraft:blackstone"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,0.9f,2.8f],translation:[9.35f,0f,0f]},interpolation_duration:2}]}
  10. /summon block_display ~-7 ~2.6 ~-1.1 {Tags:["c9_m","c9_key","c9_b","c9_b4"],block_state:{Name:"minecraft:blackstone"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,0.9f,2.8f],translation:[11.35f,0f,0f]},interpolation_duration:2,Passengers:[{id:"minecraft:block_display",Tags:["c9_m","c9_key","c9_b","c9_b5"],block_state:{Name:"minecraft:blackstone"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,0.9f,2.8f],translation:[13.35f,0f,0f]},interpolation_duration:2}]}

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_t 1
  2. /execute as @e[tag=c9_ctrl,scores={c9_t=64..}] run scoreboard players set @s c9_t 0
  3. /tag @e[tag=c9_act] remove c9_act
  4. /execute as @e[tag=c9_w] run data merge entity @s {start_interpolation:0,Glowing:0b,block_state:{Name:"minecraft:quartz_block"},transformation:{left_rotation:[0f,0f,0f,1f]}}
  5. /execute as @e[tag=c9_b] run data merge entity @s {start_interpolation:0,Glowing:0b,block_state:{Name:"minecraft:blackstone"},transformation:{left_rotation:[0f,0f,0f,1f]}}
  6. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 0..5 as @e[tag=c9_k0] run tag @s add c9_act
  7. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 8..13 as @e[tag=c9_k2] run tag @s add c9_act
  8. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 16..21 as @e[tag=c9_k4] run tag @s add c9_act
  9. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 24..29 as @e[tag=c9_k7] run tag @s add c9_act
  10. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 32..37 as @e[tag=c9_k5] run tag @s add c9_act
  11. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 40..45 as @e[tag=c9_b3] run tag @s add c9_act
  12. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 48..53 as @e[tag=c9_k4] run tag @s add c9_act
  13. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 56..61 as @e[tag=c9_b1] run tag @s add c9_act
  14. /execute as @e[tag=c9_act] run data merge entity @s {start_interpolation:0,Glowing:1b,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0.08f,0f,0f,0.996f]}}

How it works

Frames from the test run

Colossal Self-Playing Keyboard - frame 1Colossal Self-Playing Keyboard - frame 2Colossal Self-Playing Keyboard - frame 3

Recorded on our own test server: 48 frames at about 9.4 fps. Our image check saw: A giant piano keyboard built from scaled block displays presses individual keys down, changing their texture to glowing sea lanterns with an outline.

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 facing south or north and run the 10 setup commands in chat or via an impulse command block.
  2. Notice how the blackstone synthesizer frame, sea lantern soundboard, and 14 oversized quartz and blackstone keys appear across the stage.
  3. Place 14 repeating command blocks (or 1 repeating command block chained into 13 chain command blocks), all set to Always Active.
  4. Paste each of the 14 loop commands into the command blocks in order.
  5. Watch the synthesizer automatically cycle through its 64-tick arpeggio sequence, tilting and lighting up keys as it plays.

Use it with real players

To let real players play the keyboard manually by walking across the keys instead of using the automatic sequencer, disable loop commands 6 through 13 and replace them with a single repeating command: /execute at @a as @e[tag=c9_key,distance=..2.5,sort=nearest,limit=1] run tag @s add c9_act.

Remove it again 3 commands

  1. /kill @e[tag=c9_m]
  2. /scoreboard objectives remove c9_t
  3. /fill ~-9 ~ ~-5 ~9 ~5 ~4 air

FAQ

Why do the keys move smoothly instead of snapping instantly?

Each block_display entity is summoned with interpolation_duration set to 2 ticks, and every transformation change resets start_interpolation to 0 so the client smoothly animates the tilt.

How can I change the melody the keyboard plays?

Edit loop commands 6 through 13 and change the target key tag (from c9_k0 through c9_k7 for white keys, or c9_b0 through c9_b5 for black keys) for each 8-tick window.

Commands used

/data/execute/fill/scoreboard/summon/tag

Similar creations

Join 9Minecraft News & Guides