Build a working factory conveyor belt in vanilla Minecraft with animated steel rollers, glowing items, an optical gem sorter, and a riding chicken.
Spawners & GeneratorsIndustrialTechnologyBlackGoldCyanDecorationMap MakingBlock displaysSummoned mobsBlock building (fill/setblock/clone)21+ commands
This command creation turns a flat floor into an automated factory assembly line. A hopper dispenser drops raw gold, iron ingots, glowing diamonds, and emeralds onto a dark steel conveyor belt with moving metal rollers. Occasionally, a curious chicken hops onto the line for a free ride.
At the center of the track, a cyan laser scanner inspects everything passing underneath. Precious gems are automatically pushed onto a glowing glass side chute into a collection barrel, while metals and chickens continue straight to the end of the line.
/scoreboard objectives add c9_timer dummy/scoreboard players set #tick c9_timer 0/scoreboard players set #roller c9_timer 0/fill ~-7 ~ ~-1 ~5 ~ ~1 smooth_stone_slab[type=bottom]/fill ~-7 ~ ~ ~5 ~ ~ black_concrete/fill ~-1 ~ ~1 ~1 ~ ~4 smooth_stone_slab[type=bottom]/fill ~ ~ ~1 ~ ~ ~3 cyan_stained_glass/setblock ~-7 ~2 ~ hopper[facing=down]/setblock ~6 ~ ~ barrel[facing=up]/setblock ~ ~ ~4 barrel[facing=up]/scoreboard players add #tick c9_timer 1/execute if score #tick c9_timer matches 80.. run scoreboard players set #tick c9_timer 0/scoreboard players add #roller c9_timer 1/execute if score #roller c9_timer matches 15.. run scoreboard players set #roller c9_timer 0/execute if score #tick c9_timer matches 1 run summon item ~-6.5 ~1.2 ~ {Item:{id:"minecraft:diamond",count:1},Tags:["c9_cargo","c9_gem"],PickupDelay:32767,Glowing:1b,NoGravity:1b,Motion:[0.0,0.0,0.0]}/execute if score #tick c9_timer matches 20 run summon item ~-6.5 ~1.2 ~ {Item:{id:"minecraft:raw_gold",count:1},Tags:["c9_cargo","c9_metal"],PickupDelay:32767,NoGravity:1b,Motion:[0.0,0.0,0.0]}/execute if score #tick c9_timer matches 40 run summon item ~-6.5 ~1.2 ~ {Item:{id:"minecraft:emerald",count:1},Tags:["c9_cargo","c9_gem"],PickupDelay:32767,Glowing:1b,NoGravity:1b,Motion:[0.0,0.0,0.0]}/execute if score #tick c9_timer matches 60 run summon item ~-6.5 ~1.2 ~ {Item:{id:"minecraft:iron_ingot",count:1},Tags:["c9_cargo","c9_metal"],PickupDelay:32767,NoGravity:1b,Motion:[0.0,0.0,0.0]}/execute if score #tick c9_timer matches 30 unless entity @e[tag=c9_mob,distance=..15] run summon chicken ~-6.5 ~1.05 ~ {Tags:["c9_cargo","c9_mob"],NoAI:1b,Silent:1b,Glowing:1b}/execute if score #roller c9_timer matches 1 run summon block_display ~-6.5 ~0.96 ~-0.4 {Tags:["c9_roller"],block_state:{Name:"minecraft:iron_block"},transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[0.2f,0.1f,0.8f],right_rotation:[0f,0f,0f,1f]}}/execute as @e[tag=c9_roller] at @s run tp @s ~0.1 ~ ~/execute as @e[tag=c9_cargo] at @s if block ~ ~-0.6 ~ black_concrete run tp @s ~0.1 ~ ~/execute positioned ~ ~1.2 ~ as @e[tag=c9_gem,distance=..0.45] at @s run tp @s ~ ~ ~0.6/execute as @e[tag=c9_gem] at @s if block ~ ~-0.6 ~ cyan_stained_glass run tp @s ~ ~ ~0.1loop #5 Summons a glowing diamond item with <code>NoGravity:1b</code> and <code>PickupDelay:32767</code> so it floats cleanly along the conveyor track without players picking it up.loop #10 Spawns a flattened iron block display entity every 15 ticks at the start of the belt to act as a moving mechanical roller.loop #12 Checks if any cargo entity has <code>black_concrete</code> directly underneath it and moves it 0.1 blocks east every tick.loop #13 Acts as the center optical sorter: when an item tagged <code>c9_gem</code> reaches the middle of the belt, it is pushed sideways onto the cyan glass chute.loop #14 Slides sorted gems south along the <code>cyan_stained_glass</code> branch until they reach the collection barrel.


Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A black conveyor belt with a hopper at the start moves items like iron, gold, diamonds, emeralds, and a chicken while sorting gems down a center chute into a barrel, though white roller parts appear glitched off to the right.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To allow real players to ride the conveyor belt alongside the items, add a repeating command block running /execute as @a at @s if block ~ ~-0.6 ~ black_concrete run tp @s ~0.1 ~ ~. You can also let players toss their own items onto the belt by tagging nearby dropped items with /tag @e[type=item,distance=..10] add c9_cargo.
/kill @e[tag=c9_cargo]/kill @e[tag=c9_roller]/scoreboard objectives remove c9_timer/fill ~-7 ~ ~-1 ~6 ~2 ~4 airThey are summoned with the NoGravity NBT tag set to 1b and their vertical velocity zeroed out, which keeps them sliding smoothly at belt height without bouncing or getting stuck on block edges.
Any entity with the c9_gem tag gets diverted at the center junction. Add or remove c9_gem from the summon commands to change which items take the cyan glass path.
▶Tesla Coil Lightning Arc SpawnerSpawners & GeneratorsMedium24 cmds
▶3D Conveyor Belt LoopSpawners & GeneratorsMedium26 cmds
▶Automated Conveyor FactorySpawners & GeneratorsEasy24 cmds
▶Automated Crop HarvesterSpawners & GeneratorsMedium24 cmds
▶Automated Factory Assembly LineSpawners & GeneratorsMedium24 cmds
▶Automated Glass Pane InstallerSpawners & GeneratorsEasy23 cmds