Build a self-running factory assembly line in vanilla Minecraft where glowing presses stamp raw cobblestone into iron and diamond blocks on a conveyor belt.
Factories & MachinesIndustrialTechnologyFireOrangeGoldCyanDecorationMap MakingBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Sounds21+ commands
This command creation builds a self-running factory assembly line right before your eyes. Raw cobblestone blocks dispense onto a dark conveyor belt and slide through two overhead stamping arches equipped with glowing robotic presses.
As each block passes under the first press, the copper arm slams down with a burst of lava sparks and compresses the cobblestone into an iron block. Seconds later, the second golden press strikes the iron block with magical sparks, upgrading it into a finished diamond block before it drops into the collection hopper.
/scoreboard objectives add c9_tick dummy/fill ~-8 ~ ~-2 ~8 ~ ~2 polished_andesite/fill ~-7 ~ ~-1 ~7 ~ ~1 smooth_stone_slab[type=double]/fill ~-6 ~1 ~ ~6 ~1 ~ polished_blackstone_slab[type=bottom]/fill ~-2 ~1 ~-2 ~-2 ~4 ~2 iron_bars/fill ~2 ~1 ~-2 ~2 ~4 ~2 iron_bars/setblock ~-6 ~1 ~ dispenser[facing=east]/setblock ~6 ~ ~ hopper/summon block_display ~-2 ~3.2 ~ {Tags:["c9_mach","c9_arm1"],Glowing:1b,block_state:{Name:"minecraft:copper_block"},interpolation_duration:4,transformation:{translation:[-0.45f,-0.8f,-0.45f],scale:[0.9f,1.4f,0.9f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~2 ~3.2 ~ {Tags:["c9_mach","c9_arm2"],Glowing:1b,block_state:{Name:"minecraft:gold_block"},interpolation_duration:4,transformation:{translation:[-0.45f,-0.8f,-0.45f],scale:[0.9f,1.4f,0.9f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/scoreboard players add #c9_main c9_tick 1/execute if score #c9_main c9_tick matches 41.. run scoreboard players set #c9_main c9_tick 1/execute if score #c9_main c9_tick matches 1 run summon block_display ~-5.5 ~1.5 ~ {Tags:["c9_mach","c9_item"],Glowing:1b,teleport_duration:1,block_state:{Name:"minecraft:cobblestone"},transformation:{translation:[-0.35f,0f,-0.35f],scale:[0.7f,0.7f,0.7f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #c9_main c9_tick matches 1 run playsound minecraft:block.dispenser.dispense block @a ~-6 ~1 ~ 0.8 1.2/execute as @e[tag=c9_item] at @s run tp @s ~0.1 ~ ~/execute as @e[tag=c9_item] run scoreboard players add @s c9_tick 1/particle minecraft:crit ~ ~1.5 ~ 4.5 0.05 0.1 0.02 4/execute as @e[tag=c9_item,scores={c9_tick=35}] at @s run data merge entity @s {block_state:{Name:"minecraft:iron_block"}}/execute if score #c9_main c9_tick matches 35 run particle minecraft:lava ~-2 ~1.8 ~ 0.3 0.3 0.3 0.1 25/execute if score #c9_main c9_tick matches 35 run playsound minecraft:block.anvil.place block @a ~-2 ~1.8 ~ 0.6 1.4/execute as @e[tag=c9_item,scores={c9_tick=75}] at @s run data merge entity @s {block_state:{Name:"minecraft:diamond_block"}}/execute if score #c9_main c9_tick matches 35 run particle minecraft:wax_on ~2 ~1.8 ~ 0.4 0.4 0.4 0.5 30/execute if score #c9_main c9_tick matches 31..38 as @e[tag=c9_mach,tag=!c9_item] run data merge entity @s {start_interpolation:0,transformation:{translation:[-0.45f,-1.65f,-0.45f],scale:[0.9f,1.7f,0.9f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #c9_main c9_tick matches 1..30 as @e[tag=c9_mach,tag=!c9_item] run data merge entity @s {start_interpolation:0,transformation:{translation:[-0.45f,-0.8f,-0.45f],scale:[0.9f,1.4f,0.9f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/kill @e[tag=c9_item,scores={c9_tick=112..}]setup #9 Summons the first robotic stamper using a glowing <code>block_display</code> with a 4-tick <code>interpolation_duration</code> so its vertical slamming motion animates smoothly.loop #3 Spawns a fresh scaled-down cobblestone <code>block_display</code> at the dispenser every 40 ticks (2 seconds) with <code>teleport_duration:1</code> for smooth conveyor motion.loop #8 When an item reaches 35 ticks of travel, it is directly beneath the first press at X=-2 and transforms into an <code>iron_block</code>.loop #11 At 75 ticks of travel (40 ticks after the first press), the block reaches X=+2 beneath the second press and upgrades into a <code>diamond_block</code>.loop #13 Between ticks 31 and 38 of the 40-tick cycle, both overhead presses interpolate downward simultaneously to stamp the blocks passing underneath.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A conveyor belt on a stone platform moves glowing cobblestone, iron, and diamond blocks under iron-bar arches with glowing copper and gold presses emitting lava sparks and smoke.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make this factory dispense real items you can pick up, add a conditional command block right before the final /kill command that runs /execute at @e[tag=c9_item,scores={c9_tick=111}] run summon item ~ ~ ~ {Item:{id:"minecraft:diamond",count:1}} so finished blocks drop into the hopper at the end of the line.
/kill @e[tag=c9_mach]/scoreboard objectives remove c9_tick/fill ~-8 ~ ~-2 ~8 ~5 ~2 airEach moving block is a block_display entity with teleport_duration set to 1 tick, which tells the Minecraft client to smoothly slide the block between each 0.1-block teleport.
Yes! Change minecraft:cobblestone, minecraft:iron_block, and minecraft:diamond_block in loop commands 3, 8, and 11 to any block IDs you want on your assembly line.
/data/execute/fill/kill/particle/playsound/scoreboard/setblock/summon/tp
▶Industrial Hydraulic Press vs Anvil & DiamondFactories & MachinesMedium24 cmds
▶Automated Bessemer Steel Foundry PourFactories & MachinesMedium24 cmds
▶Goliath Watchmaker Tourbillon EscapementFactories & MachinesExpert24 cmds
▶High-Voltage Tesla Coil Plasma Arc SymphonyFactories & MachinesHard24 cmds
▶Kinetic Strandbeest Wind WalkerFactories & MachinesExpert24 cmds
▶Mechanical Hummingbird Nectar Hover RigFactories & MachinesExpert24 cmds