Automated Conveyor Assembly

Build a working factory conveyor belt in vanilla Minecraft with animated steel rollers, glowing items, an optical gem sorter, and a riding chicken.

Java EditionMini-games & UtilitiesEasy24 commandsTested on a real 26.2 & 26.3 server
An automated Minecraft conveyor belt sorting glowing diamonds and emeralds into a barrel while transporting resources. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #tick c9_timer 0
  3. /scoreboard players set #roller c9_timer 0
  4. /fill ~-7 ~ ~-1 ~5 ~ ~1 smooth_stone_slab[type=bottom]
  5. /fill ~-7 ~ ~ ~5 ~ ~ black_concrete
  6. /fill ~-1 ~ ~1 ~1 ~ ~4 smooth_stone_slab[type=bottom]
  7. /fill ~ ~ ~1 ~ ~ ~3 cyan_stained_glass
  8. /setblock ~-7 ~2 ~ hopper[facing=down]
  9. /setblock ~6 ~ ~ barrel[facing=up]
  10. /setblock ~ ~ ~4 barrel[facing=up]

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /scoreboard players add #tick c9_timer 1
  2. /execute if score #tick c9_timer matches 80.. run scoreboard players set #tick c9_timer 0
  3. /scoreboard players add #roller c9_timer 1
  4. /execute if score #roller c9_timer matches 15.. run scoreboard players set #roller c9_timer 0
  5. /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]}
  6. /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]}
  7. /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]}
  8. /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]}
  9. /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}
  10. /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]}}
  11. /execute as @e[tag=c9_roller] at @s run tp @s ~0.1 ~ ~
  12. /execute as @e[tag=c9_cargo] at @s if block ~ ~-0.6 ~ black_concrete run tp @s ~0.1 ~ ~
  13. /execute positioned ~ ~1.2 ~ as @e[tag=c9_gem,distance=..0.45] at @s run tp @s ~ ~ ~0.6
  14. /execute as @e[tag=c9_gem] at @s if block ~ ~-0.6 ~ cyan_stained_glass run tp @s ~ ~ ~0.1

How it works

Frames from the test run

Automated Conveyor Assembly - frame 1Automated Conveyor Assembly - frame 2Automated Conveyor Assembly - frame 3

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.

Build it in your world

  1. Stand in the center of a flat open area where you want the sorting junction of your conveyor belt to be.
  2. Run all 10 setup commands in chat or from impulse command blocks to build the conveyor frame, hopper, and barrels.
  3. Place a line of 14 repeating command blocks set to Always Active nearby.
  4. Paste each loop command into its own repeating command block using the same center origin.
  5. To keep entities from building up over long sessions, add an extra repeating command block with: /execute as @e[tag=c9_cargo] at @s if block ~ ~-0.6 ~ barrel run kill @s and /execute as @e[tag=c9_roller] at @s unless block ~ ~-0.5 ~ black_concrete run kill @s

Use it with real players

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.

Remove it again 4 commands

  1. /kill @e[tag=c9_cargo]
  2. /kill @e[tag=c9_roller]
  3. /scoreboard objectives remove c9_timer
  4. /fill ~-7 ~ ~-1 ~6 ~2 ~4 air

FAQ

Why do the items float instead of falling onto the blocks?

They 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.

How can I change which items get sorted into the side chute?

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.

Commands used

/execute/fill/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides