Automated Smelting Foundry

Build an automated smelting foundry in Minecraft using display entities, hydraulic stamping presses, glowing ores, and fiery blast furnace tunnels.

Java EditionHolograms & Display EntitiesHard24 commandsTested on a real 26.2 & 26.3 server
An automated Minecraft smelting foundry presses glowing raw ores into plates and smelts them into solid blocks. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsIndustrialFireTechnologyOrangeGoldBlackDecorationMap MakingLearningParticlesBlock displaysItem displaysSmooth animation (interpolation)Scoreboard timersExecute chainsBlock building (fill/setblock/clone)Glowing outlines21+ commands

This command creation builds a working industrial assembly line right in the middle of your world. Dual conveyor belts carry glowing blocks of raw gold and raw copper through a heavy hydraulic stamping press that crushes the chunks into flat plates with a burst of lava sparks.

After being stamped, the flattened plates travel through a flaming blast furnace tunnel where they smelt into solid blocks of shiny gold and copper before dropping into the collection hoppers at the end of the line.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /fill ~-8 ~ ~-4 ~8 ~ ~4 polished_deepslate
  3. /fill ~-7 ~1 ~-2 ~6 ~1 ~-2 polished_blackstone_brick_slab[type=bottom]
  4. /fill ~-7 ~1 ~2 ~6 ~1 ~2 polished_blackstone_brick_slab[type=bottom]
  5. /fill ~7 ~1 ~-2 ~7 ~1 ~2 hopper
  6. /fill ~-3 ~1 ~-3 ~-3 ~4 ~3 polished_blackstone_bricks
  7. /fill ~-3 ~1 ~-2 ~-3 ~3 ~2 air
  8. /fill ~2 ~1 ~-3 ~3 ~4 ~3 blast_furnace[lit=true]
  9. /fill ~2 ~1 ~-2 ~3 ~2 ~2 air
  10. /summon block_display ~-3.4 ~2.6 ~-2.4 {Tags:["c9_foundry","c9_press"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[0f,0f,0f],scale:[0.8f,1.2f,4.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},interpolation_duration:3}

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

  1. /scoreboard players add #foundry c9_tick 1
  2. /execute if score #foundry c9_tick matches 15.. run scoreboard players set #foundry c9_tick 0
  3. /execute if score #foundry c9_tick matches 1 run summon item_display ~-7.0 ~1.85 ~-2 {Tags:["c9_foundry","c9_ore","c9_ore1"],item:{id:"minecraft:raw_gold_block",count:1},Glowing:1b,glow_color_override:16766720,transformation:{translation:[0f,0f,0f],scale:[0.85f,0.85f,0.85f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},teleport_duration:1,interpolation_duration:4}
  4. /execute if score #foundry c9_tick matches 1 run summon item_display ~-7.0 ~1.85 ~2 {Tags:["c9_foundry","c9_ore","c9_ore2"],item:{id:"minecraft:raw_copper_block",count:1},Glowing:1b,glow_color_override:16744231,transformation:{translation:[0f,0f,0f],scale:[0.85f,0.85f,0.85f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},teleport_duration:1,interpolation_duration:4}
  5. /execute as @e[tag=c9_ore] at @s run tp @s ~0.12 ~ ~
  6. /execute if score #foundry c9_tick matches 3 as @e[tag=c9_press] run data merge entity @s {start_interpolation:0,transformation:{translation:[0f,-1.1f,0f],scale:[0.8f,1.2f,4.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  7. /execute if score #foundry c9_tick matches 9 as @e[tag=c9_press] run data merge entity @s {start_interpolation:0,transformation:{translation:[0f,0f,0f],scale:[0.8f,1.2f,4.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute if score #foundry c9_tick matches 4 run particle lava ~-3 ~1.6 ~ 0.2 0.2 1.8 0.1 16
  9. /execute positioned ~-3 ~1.85 ~-2 as @e[tag=c9_ore1,distance=..0.6] run data merge entity @s {start_interpolation:0,transformation:{translation:[0f,-0.25f,0f],scale:[1.15f,0.25f,1.15f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  10. /execute positioned ~-3 ~1.85 ~2 as @e[tag=c9_ore2,distance=..0.6] run data merge entity @s {start_interpolation:0,transformation:{translation:[0f,-0.25f,0f],scale:[1.15f,0.25f,1.15f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  11. /execute positioned ~2.5 ~1.85 ~-2 as @e[tag=c9_ore1,distance=..0.6] run data merge entity @s {item:{id:"minecraft:gold_block",count:1},start_interpolation:0,transformation:{translation:[0f,0f,0f],scale:[0.85f,0.85f,0.85f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  12. /execute positioned ~2.5 ~1.85 ~2 as @e[tag=c9_ore2,distance=..0.6] run data merge entity @s {item:{id:"minecraft:copper_block",count:1},start_interpolation:0,transformation:{translation:[0f,0f,0f],scale:[0.85f,0.85f,0.85f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  13. /particle flame ~2.5 ~1.9 ~ 0.4 0.3 1.8 0.02 8
  14. /execute positioned ~7 ~1.85 ~ run kill @e[tag=c9_ore,distance=..2.6]

How it works

Frames from the test run

Automated Smelting Foundry - frame 1Automated Smelting Foundry - frame 2Automated Smelting Foundry - frame 3

Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: Dual conveyor belts carry glowing raw copper and gold blocks through a hydraulic press that flattens them into plates before sending them through a fiery blast furnace tunnel to become solid metal blocks.

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 at the center of a flat open area where you want the foundry built.
  2. Run each of the 10 setup commands in chat or in impulse command blocks anchored to that center position.
  3. Place 14 repeating command blocks set to Always Active.
  4. Paste one loop command into each repeating command block, making sure coordinates are executed relative to the foundry center.
  5. Watch the dual conveyor belts automatically stamp and smelt raw gold and copper blocks.

Use it with real players

To drop real gold and copper ingots into your survival storage system at the end of the belt, replace the final loop command with an execute command that summons a real item entity above the hoppers right before killing the c9_ore display entity.

Remove it again 3 commands

  1. /kill @e[tag=c9_foundry]
  2. /fill ~-8 ~ ~-4 ~8 ~4 ~4 air
  3. /scoreboard objectives remove c9_tick

FAQ

Why do the blocks move smoothly instead of jumping each tick?

The item displays are summoned with teleport_duration set to 1, which tells the game client to interpolate their position between each 0.12-block teleport.

Can I change the ores being smelted on the conveyor belts?

Yes, change raw_gold_block and gold_block in loop commands 3 and 11 to any other raw and refined block pair, such as raw_iron_block and iron_block.

Commands used

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

Similar creations

Join 9Minecraft News & Guides