Automated Ore Processing Assembly Line

Build an animated industrial factory conveyor belt in vanilla Minecraft where stone blocks get crushed by heavy hammers and smelted into glowing gold.

Java EditionMini-games & UtilitiesMedium25 commandsTested on a real 26.2 & 26.3 server
Glowing blocks travel along a blackstone conveyor belt through an iron crusher and a fiery smelter. Download the GIF Video & GIF © www.9minecraft.net

Spawners & GeneratorsIndustrialTechnologyFireGoldOrangeBlackDecorationMap MakingLearningBlock displaysBlock building (fill/setblock/clone)21+ commands

This command creation builds an open-frame industrial factory line right on your floor. Every couple of seconds, a chunk of raw stone is dispensed onto a raised conveyor belt and glides steadily down the line through two active processing stations.

First, an animated heavy iron crusher slams down with sparks and stone debris, shattering the stone block into raw gold ore. The raw gold then travels through a blazing blast furnace chamber wrapped in fire and lava particles, emerging as a bright refined gold block before dropping into the collection chest at the end of the line.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /scoreboard objectives add c9_age dummy
  3. /fill ~-9 ~ ~-3 ~9 ~ ~3 polished_blackstone_bricks
  4. /fill ~-8 ~1 ~ ~8 ~1 ~ gray_concrete
  5. /fill ~-8 ~1 ~-1 ~8 ~1 ~1 deepslate_tile_slab[type=bottom] replace air
  6. /fill ~-4 ~1 ~-2 ~-2 ~5 ~2 iron_bars hollow
  7. /fill ~-4 ~5 ~-2 ~-2 ~5 ~2 iron_block
  8. /fill ~2 ~1 ~-2 ~4 ~5 ~2 tinted_glass hollow
  9. /fill ~2 ~5 ~-2 ~4 ~5 ~2 magma_block
  10. /summon block_display ~-3 ~3.6 ~ {Tags:["c9_all","c9_press"],Glowing:1b,glow_color_override:16733525,block_state:{Name:"minecraft:anvil"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.6f,1.8f],translation:[-0.9f,0f,-0.9f]}}

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

  1. /scoreboard players add #clock c9_tick 1
  2. /execute if score #clock c9_tick matches 40.. run scoreboard players set #clock c9_tick 0
  3. /execute if score #clock c9_tick matches 1 run summon block_display ~-7.5 ~2.0 ~ {Tags:["c9_all","c9_ore","c9_raw"],Glowing:1b,glow_color_override:11184810,block_state:{Name:"minecraft:stone"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.85f,0.85f,0.85f],translation:[-0.425f,0f,-0.425f]}}
  4. /execute as @e[tag=c9_ore] at @s run tp @s ~0.12 ~ ~
  5. /execute as @e[tag=c9_ore] run scoreboard players add @s c9_age 1
  6. /execute as @e[tag=c9_press] at @s run tp @s ~ ~ ~
  7. /execute if entity @e[tag=c9_ore,scores={c9_age=33..41}] as @e[tag=c9_press] run tp @s ~-3 ~2.4 ~
  8. /execute as @e[tag=c9_raw,scores={c9_age=37}] at @s run particle block{block_state:{Name:"minecraft:cobblestone"}} ~ ~0.5 ~ 0.5 0.4 0.5 0.15 45
  9. /execute as @e[tag=c9_raw,scores={c9_age=37}] at @s run particle crit ~ ~0.6 ~ 0.6 0.4 0.6 0.25 30
  10. /execute as @e[tag=c9_raw,scores={c9_age=37..}] run data merge entity @s {Tags:["c9_all","c9_ore","c9_crushed"],glow_color_override:16755200,block_state:{Name:"minecraft:raw_gold_block"}}
  11. /particle flame ~3 ~2.5 ~ 0.8 0.6 0.6 0.03 8
  12. /execute as @e[tag=c9_crushed,scores={c9_age=88}] at @s run particle lava ~ ~0.5 ~ 0.5 0.5 0.5 0.1 25
  13. /execute as @e[tag=c9_crushed,scores={c9_age=88..}] run data merge entity @s {Tags:["c9_all","c9_ore","c9_ingot"],glow_color_override:65280,block_state:{Name:"minecraft:gold_block"}}
  14. /execute as @e[tag=c9_ore,scores={c9_age=126..}] at @s run particle poof ~ ~0.4 ~ 0.2 0.2 0.2 0.05 5
  15. /kill @e[tag=c9_ore,scores={c9_age=127..}]

How it works

Frames from the test run

Automated Ore Processing Assembly Line - frame 1Automated Ore Processing Assembly Line - frame 2Automated Ore Processing Assembly Line - frame 3

Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A stone block, an anvil crusher, a raw gold block, and a fiery smelting chamber with glowing outlines sit along a blackstone conveyor belt.

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 at least 20x10 blocks wide.
  2. Run each command from the Setup list one by one in chat to build the factory floor, iron crusher cage, glass furnace, and press head.
  3. Place a chain of 14 repeating command blocks (or one repeating block connected to 13 chain blocks) underneath or beside the factory.
  4. Paste the Loop commands into the command blocks and set them all to Always Active.
  5. Watch the stone blocks spawn at the west end of the belt, get smashed into raw gold, and smelt into solid gold blocks.

Use it with real players

To let players feed their own cobblestone into the machine, replace loop command 3 with /execute as @e[type=item,nbt={Item:{id:"minecraft:cobblestone"}}] at @s if block ~ ~-1 ~ gray_concrete run summon block_display ~ ~0.5 ~ {Tags:["c9_all","c9_ore","c9_raw"],block_state:{Name:"minecraft:stone"}} and kill the dropped cobblestone item, then drop real gold ingots at tick 126 before killing the display entity.

Remove it again 4 commands

  1. /kill @e[tag=c9_all]
  2. /fill ~-9 ~ ~-3 ~9 ~6 ~3 air
  3. /scoreboard objectives remove c9_tick
  4. /scoreboard objectives remove c9_age

FAQ

Why did the previous version fail to transform the blocks?

In Minecraft, selector arguments like x=~-2 inside /execute as @e at @s are evaluated relative to each moving entity rather than the stage center. Using a scoreboard age timer (c9_age) guarantees the crusher and furnace trigger at the exact spot every time.

Can I change the speed of the conveyor belt?

Yes! If you double the teleport speed in loop command 4 from ~0.12 to ~0.24, just halve the c9_age numbers in the crusher, furnace, and removal commands so they trigger at the same physical locations.

Commands used

/data/execute/fill/kill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides