Build a giant brass and copper espresso machine with spinning gears, trembling boilers, venting steam, and a dark stream of coffee filling a giant cup.
Machines & MechanismsIndustrialTechnologyOrangeBlackYellowDecorationServer LobbyBlock displaysItem displaysBlock building (fill/setblock/clone)Rotation math21+ commands
This command creation builds an animated steampunk espresso machine right in the middle of your world. Constructed from copper, gold, and blackstone, the contraption features a constantly spinning brass flywheel, a pressure gauge needle that climbs into the red zone, and an upper boiler assembly that physically shudders and hisses as internal pressure peaks.
Once the pressure gauge hits maximum, the machine vents blasts of white steam and drives its central press piston down. Two rich streams of dark espresso pour from the dual spouts into a giant glazed terracotta cup below, filling it with a swirling layer of golden crema before resetting for the next brew cycle.
/scoreboard objectives add c9_tick dummy/fill ~-5 ~ ~-4 ~5 ~ ~4 polished_blackstone_bricks/fill ~-4 ~1 ~-3 ~4 ~1 ~3 chiseled_copper/fill ~-4 ~2 ~-3 ~4 ~11 ~-1 cut_copper/fill ~-3 ~3 ~-1 ~3 ~10 ~-1 copper_grate/fill ~-3 ~11 ~-3 ~3 ~13 ~2 waxed_copper_block/fill ~-2 ~2 ~1 ~2 ~2 ~3 smooth_quartz/fill ~-1 ~3 ~1 ~1 ~5 ~3 yellow_terracotta hollow/setblock ~ ~4 ~4 acacia_fence/summon marker ~ ~ ~ {Tags:["c9_root","c9_ent"]}/execute unless entity @e[tag=c9_parts] run summon block_display ~ ~11.5 ~ {Tags:["c9_ent","c9_parts","c9_boiler"],transformation:{translation:[-2.0f,-1.5f,-0.5f],scale:[4.0f,3.0f,2.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:gold_block"}}/execute unless entity @e[tag=c9_piston] run summon block_display ~ ~9.5 ~1.5 {Tags:["c9_ent","c9_piston"],transformation:{translation:[-0.6f,0f,-0.6f],scale:[1.2f,3.0f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:iron_block"}}/execute unless entity @e[tag=c9_wheel] run summon item_display ~-4.2 ~7 ~ {Tags:["c9_ent","c9_wheel"],transformation:{translation:[0f,0f,0f],scale:[3.5f,3.5f,1.5f],left_rotation:[0f,0.7071f,0f,0.7071f],right_rotation:[0f,0f,0f,1f]},item:{id:"minecraft:clock"}}/execute unless entity @e[tag=c9_gauge] run summon item_display ~ ~11.5 ~2.15 {Tags:["c9_ent","c9_gauge"],transformation:{translation:[0f,0f,0f],scale:[1.8f,1.8f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},item:{id:"minecraft:blaze_rod"}}/execute unless entity @e[tag=c9_liquid] run summon block_display ~ ~3.1 ~2 {Tags:["c9_ent","c9_liquid"],transformation:{translation:[-0.9f,0f,-0.9f],scale:[1.8f,0.1f,1.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:brown_concrete"}}/scoreboard players add @e[tag=c9_root] c9_tick 1/execute as @e[tag=c9_root,scores={c9_tick=160..}] run scoreboard players set @s c9_tick 0/execute as @e[tag=c9_wheel] at @s run tp @s ~ ~ ~ ~12 ~/execute if score @e[tag=c9_root,limit=1] c9_tick matches 1..60 as @e[tag=c9_root] at @s run particle flame ~ ~2.2 ~-0.5 2 0.2 0.3 0.02 8 force/execute if score @e[tag=c9_root,limit=1] c9_tick matches 25 as @e[tag=c9_gauge] run data modify entity @s transformation.right_rotation set value [0f,0f,-0.7071f,0.7071f]/execute if score @e[tag=c9_root,limit=1] c9_tick matches 40..75 as @e[tag=c9_boiler] at @s run tp @s ~ ~ ~ ~4 ~/execute if score @e[tag=c9_root,limit=1] c9_tick matches 40..75 run particle cloud ~ ~12 ~0.5 2.2 1.2 1.2 0.12 15 force/execute if score @e[tag=c9_root,limit=1] c9_tick matches 55 run summon block_display ~ ~8.2 ~1.5 {Tags:["c9_ent","c9_boiler"],transformation:{translation:[-1.2f,0f,-1.2f],scale:[2.4f,1.2f,2.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:polished_blackstone"}}/execute if score @e[tag=c9_root,limit=1] c9_tick matches 65..135 run summon block_display ~-0.4 ~8.0 ~2 {Tags:["c9_ent","c9_drop"],transformation:{translation:[-0.18f,0f,-0.18f],scale:[0.36f,0.65f,0.36f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:brown_concrete"}}setup #3 Builds the structural copper housing, blackstone base, and a giant yellow terracotta espresso cup resting on a smooth quartz saucer.loop #1 Summons the oversized brass boiler block display at the top of the machine if it does not already exist.loop #6 Advances the master 160-tick (8-second) brewing timer stored on the c9_root marker entity.loop #11 Shudders the upper brass boiler and group head between ticks 40 and 75 while clouds of steam erupt around the pipes.loop #14 Spawns falling espresso stream blocks from the group head during the pouring phase.


Recorded on our own test server: 48 frames at about 7.8 fps. Our image check saw: A copper and blackstone espresso machine structure with a spinning clock item on the side, an animated upper nozzle dispensing brown liquid into a yellow mug, and white steam particles.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let players trigger the espresso cycle manually with a lever or button instead of running automatically, remove the repeating command block that adds 1 to c9_tick when the score is 0, and place an impulse command block behind a button on the machine that runs /scoreboard players set @e[tag=c9_root] c9_tick 1.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_tick/fill ~-5 ~ ~-4 ~5 ~14 ~4 airMake sure all 14 loop command blocks are set to Repeating and Always Active, and that your server tick rate is running at normal speed.
Yes! Replace yellow_terracotta in the ninth setup command with any other terracotta or concrete block to customize your mug.
▶Steampunk Astrolabe GyroscopeMachines & MechanismsMedium24 cmds
▶Steampunk Printing Press Newspaper RollMachines & MechanismsHard24 cmds
▶Holographic Magnetic Tokamak Fusion ConfinementMachines & MechanismsExpert26 cmds
▶Kinematic Radial Aircraft Engine IgnitionMachines & MechanismsExpert24 cmds
▶Kinematic V8 Engine Piston CutawayMachines & MechanismsExpert24 cmds
▶Kinetic Moiré Pattern Interference SculptureMachines & MechanismsMedium23 cmds