Build a giant automated fourteen-key grand synthesizer in Minecraft using block display entities that physically press down, glow, and play a looping arpeggio.
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.
/scoreboard objectives add c9_t dummy/fill ~-9 ~ ~-5 ~9 ~ ~4 polished_blackstone/fill ~-8 ~1 ~-4 ~8 ~5 ~-2 black_concrete/fill ~-8 ~3 ~-2 ~8 ~4 ~-2 sea_lantern/fill ~-8 ~1 ~-1 ~8 ~1 ~3 nether_bricks/summon marker ~ ~1 ~ {Tags:["c9_m","c9_ctrl"]}/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}]}/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}]}/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}]}/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}]}/scoreboard players add @e[tag=c9_ctrl] c9_t 1/execute as @e[tag=c9_ctrl,scores={c9_t=64..}] run scoreboard players set @s c9_t 0/tag @e[tag=c9_act] remove c9_act/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]}}/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]}}/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/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/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/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/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/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/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/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/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]}}setup #7 Summons the first four white keys using nested <code>Passengers</code> on a single <code>block_display</code> root. Each key is scaled to 1.8 blocks wide and 4.5 blocks long, and offset along the X axis using its <code>translation</code> vector.setup #9 Summons the raised blackstone keys slightly higher and further back, scaled narrower and shorter than the white quartz keys to match a grand synthesizer layout.loop #4 Resets all white keys back to unlit quartz blocks with a flat <code>left_rotation</code> quaternion of <code>[0f,0f,0f,1f]</code> before the active note for the current tick is selected.loop #14 Tilts any key currently tagged with <code>c9_act</code> downward along the X axis using a quaternion rotation, turns on its glowing outline, and swaps its block state to a bright sea lantern.


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.
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.
/kill @e[tag=c9_m]/scoreboard objectives remove c9_t/fill ~-9 ~ ~-5 ~9 ~5 ~4 airEach 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.
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.
▶Autonomous Jukebox & Musical Light ShowMachines & MechanismsMedium24 cmds
▶Victorian Carousel of Mythical BeastsMachines & MechanismsHard24 cmds
▶Victorian Phonograph Soundwave VisualizerMachines & MechanismsMedium24 cmds
▶Holographic Pinball Machine Autonomous JackpotMachines & MechanismsHard24 cmds
▶Self-Playing Acoustic Guitar StrummerMachines & MechanismsMedium24 cmds
▶3D Data Graph VisualizerMachines & MechanismsMedium24 cmds