A large dark oak and gold display-entity useless box where a tiny observer robot flips the glowing switch on and a piston arm stubbornly shuts it off.
Machines & MechanismsTechnologyCuteGoldPinkCyanDecorationServer LobbyMap MakingBlock displaysArmor standsSmooth animation (interpolation)21+ commands
Meet the Indecisive Useless Box, a scaled-up display-entity contraption crafted from dark oak planks, a thick gold base, a bright sea lantern front panel, and a glowing redstone torch switch. Out front, a tiny observer-headed robot stands on a gold podium reaching toward the toggle.
Each cycle, the switch flips on and sets off shifting pink-to-cyan dust particles. The hinged oak lid either peeks open with hesitation before snapping wide or creeps open slowly, then a glowing piston-head arm shoots out to smack the torch off and slam the box shut again.
/scoreboard objectives add c9_t dummy/scoreboard objectives add c9_mode dummy/summon block_display ~ ~ ~ {Tags:["c9_box"],block_state:{Name:"minecraft:dark_oak_planks"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.5f,0.25f,-1.5f],scale:[3.0f,2.0f,3.0f]}}/summon block_display ~ ~ ~ {Tags:["c9_box"],block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.7f,0f,-1.7f],scale:[3.4f,0.35f,3.4f]}}/summon block_display ~ ~ ~ {Tags:["c9_box"],block_state:{Name:"minecraft:sea_lantern"},brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.55f,0.75f,1.42f],scale:[1.1f,0.75f,0.18f]}}/summon block_display ~ ~ ~ {Tags:["c9_box"],block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.25f,0f,1.5f],scale:[0.9f,1.25f,0.85f]}}/summon block_display ~ ~2.25 ~-1.5 {Tags:["c9_lid"],block_state:{Name:"minecraft:oak_planks"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.52f,0f,0f],scale:[3.04f,0.32f,2.05f]}}/summon block_display ~ ~2.25 ~1.18 {Tags:["c9_lever"],Glowing:1b,brightness:{sky:15,block:15},block_state:{Name:"minecraft:redstone_torch",Properties:{lit:"false"}},transformation:{left_rotation:[-0.259f,0f,0f,0.966f],right_rotation:[0f,0f,0f,1f],translation:[-1.1f,0f,-1.1f],scale:[2.2f,1.8f,2.2f]}}/summon block_display ~ ~1.55 ~-0.25 {Tags:["c9_arm"],Glowing:1b,brightness:{sky:15,block:15},block_state:{Name:"minecraft:piston_head",Properties:{facing:"up",short:"false",type:"normal"}},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.55f,-1.35f,-0.55f],scale:[1.1f,1.8f,1.1f]}}/summon armor_stand ~-0.75 ~1.25 ~1.78 {Tags:["c9_actor"],NoGravity:1b,NoBasePlate:1b,ShowArms:1b,Small:1b,Rotation:[-145f,0f],Pose:{RightArm:[-100f,-20f,0f],LeftArm:[-35f,10f,0f]},equipment:{head:{id:"minecraft:observer"},chest:{id:"minecraft:golden_chestplate"},legs:{id:"minecraft:iron_leggings"},feet:{id:"minecraft:golden_boots"}}}/scoreboard players add #c9 c9_t 1/execute if score #c9 c9_t matches 57.. run scoreboard players add #c9 c9_mode 1/execute if score #c9 c9_t matches 57.. run scoreboard players set #c9 c9_t 1/execute if score #c9 c9_mode matches 2.. run scoreboard players set #c9 c9_mode 0/execute if score #c9 c9_t matches 6 run data merge entity @e[tag=c9_lever,limit=1] {start_interpolation:0,interpolation_duration:3,block_state:{Name:"minecraft:redstone_torch",Properties:{lit:"true"}},transformation:{left_rotation:[0.259f,0f,0f,0.966f],right_rotation:[0f,0f,0f,1f],translation:[-1.1f,0f,-1.1f],scale:[2.2f,1.8f,2.2f]}}/execute if score #c9 c9_mode matches 0 if score #c9 c9_t matches 14 run data merge entity @e[tag=c9_lid,limit=1] {start_interpolation:0,interpolation_duration:4,transformation:{left_rotation:[-0.191f,0f,0f,0.982f],right_rotation:[0f,0f,0f,1f],translation:[-1.52f,0f,0f],scale:[3.04f,0.32f,2.05f]}}/execute if score #c9 c9_mode matches 1 if score #c9 c9_t matches 14 run data merge entity @e[tag=c9_lid,limit=1] {start_interpolation:0,interpolation_duration:16,transformation:{left_rotation:[-0.609f,0f,0f,0.793f],right_rotation:[0f,0f,0f,1f],translation:[-1.52f,0f,0f],scale:[3.04f,0.32f,2.05f]}}/execute if score #c9 c9_mode matches 0 if score #c9 c9_t matches 26 run data merge entity @e[tag=c9_lid,limit=1] {start_interpolation:0,interpolation_duration:3,transformation:{left_rotation:[-0.609f,0f,0f,0.793f],right_rotation:[0f,0f,0f,1f],translation:[-1.52f,0f,0f],scale:[3.04f,0.32f,2.05f]}}/execute if score #c9 c9_t matches 30 run data merge entity @e[tag=c9_arm,limit=1] {start_interpolation:0,interpolation_duration:4,transformation:{left_rotation:[0.446f,0f,0f,0.895f],right_rotation:[0f,0f,0f,1f],translation:[-0.55f,0.55f,-0.4f],scale:[1.1f,2.2f,1.1f]}}/execute if score #c9 c9_t matches 38 run data merge entity @e[tag=c9_lever,limit=1] {start_interpolation:0,interpolation_duration:3,block_state:{Name:"minecraft:redstone_torch",Properties:{lit:"false"}},transformation:{left_rotation:[-0.259f,0f,0f,0.966f],right_rotation:[0f,0f,0f,1f],translation:[-1.1f,0f,-1.1f],scale:[2.2f,1.8f,2.2f]}}/execute if score #c9 c9_t matches 42 run data merge entity @e[tag=c9_arm,limit=1] {start_interpolation:0,interpolation_duration:4,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.55f,-1.35f,-0.55f],scale:[1.1f,1.8f,1.1f]}}/execute if score #c9 c9_t matches 46 run data merge entity @e[tag=c9_lid,limit=1] {start_interpolation:0,interpolation_duration:3,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.52f,0f,0f],scale:[3.04f,0.32f,2.05f]}}/execute if score #c9 c9_t matches 6..40 run particle minecraft:dust_color_transition{from_color:[1.0,0.15,0.45],to_color:[0.1,0.95,1.0],scale:1.8} ~ ~2.8 ~0.4 0.9 0.5 0.9 0.05 8/execute if score #c9 c9_t matches 37..39 run particle minecraft:end_rod ~ ~2.9 ~1.18 0.35 0.35 0.35 0.08 10setup #7 Spawns the oak lid <code>block_display</code> with its entity origin right on the back-top edge of the box so X-axis rotations hinge it open cleanly.setup #10 Creates the small observer-headed <code>armor_stand</code> with <code>NoGravity:1b</code> perched on the front-left gold podium facing the switch.loop #6 In mode <code>0</code>, the lid first peeks open slightly at tick 14 before snapping fully open at tick 26, giving the box its hesitant personality.loop #9 Extends and tilts the glowing <code>piston_head</code> arm forward over 4 ticks using <code>interpolation_duration:4</code> to press the redstone torch back off.loop #13 Emits color-shifting <code>dust_color_transition</code> particles above the box while the switch is active, followed by an <code>end_rod</code> spark burst when slapped off.


Recorded on our own test server: 58 frames at about 8.3 fps. Our image check saw: A custom dark oak box on a gold base opens its oak lid while emitting pink and cyan particles next to a small observer-headed figure on a gold block.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To trigger the box yourself instead of running on a continuous timer, remove the automatic tick-6 flip and start the sequence only when a player stands near the front of the box using /execute if score #c9 c9_t matches 0 if entity @p[distance=..3.5] run scoreboard players set #c9 c9_t 1, resetting #c9 c9_t back to 0 at the end of tick 56.
/kill @e[tag=c9_box]/kill @e[tag=c9_lid]/kill @e[tag=c9_lever]/kill @e[tag=c9_arm]/kill @e[tag=c9_actor]/scoreboard objectives remove c9_t/scoreboard objectives remove c9_modeThe <code>c9_mode</code> scoreboard alternates between 0 and 1 after each 56-tick cycle, switching between a quick hesitant peek and a slow 16-tick opening.
Yes, <code>block_display</code> entities are purely visual and have no collision, which keeps the setup lag-free and easy to remove cleanly.
▶Automated Cake FactoryMachines & MechanismsMedium24 cmds
▶Automated Sushi Conveyor Chef DioramaMachines & MechanismsMedium25 cmds
▶Autonomous Sci-Fi Scrubber BotsMachines & MechanismsMedium26 cmds
▶Giant Arcade Prize Claw MachineMachines & MechanismsEasy24 cmds
▶Steampunk Astrolabe GyroscopeMachines & MechanismsMedium24 cmds
▶Steampunk Printing Press Newspaper RollMachines & MechanismsHard24 cmds