Automated Potion Bottling Conveyor Line

Build an automated potion bottling conveyor in Minecraft Java with brass nozzles, colorful liquid streams, a piston cork stamper, and a barrel chute.

Java EditionComplex Contraptions & CinematicsEasyTested on a real 26.2 & 26.3 server
An automated Minecraft conveyor belt filling glass bottles with red and cyan potions using hoppers and a piston. Download the GIF

Watch empty glass vials glide smoothly down a blackstone and copper conveyor belt under two brass overhead nozzles. As each bottle passes its station, a stream of bright ruby or cyan liquid pours from the hopper nozzle and fills the glass.

Once filled, the vials continue to a mechanical downward-facing piston that stamps them closed before they drop through a metal chute into a wooden barrel crate.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9 dummy
  2. /fill ~-7 ~0 ~0 ~5 ~0 ~0 waxed_copper_grate
  3. /fill ~-7 ~1 ~0 ~5 ~1 ~0 polished_blackstone
  4. /fill ~-4 ~0 ~-1 ~4 ~5 ~-1 waxed_copper_grate
  5. /fill ~-3 ~4 ~0 ~4 ~5 ~0 waxed_copper_block
  6. /setblock ~-3 ~3 ~0 hopper[facing=down]
  7. /setblock ~0 ~3 ~0 hopper[facing=down]
  8. /setblock ~4 ~4 ~0 piston[facing=down]
  9. /setblock ~6 ~1 ~0 hopper[facing=down]
  10. /setblock ~6 ~0 ~0 barrel[facing=up]

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

  1. /scoreboard players add #tick c9 1
  2. /execute if score #tick c9 matches 1 run summon item_display ~-7 ~2.42 ~0 {Tags:["c9_bottle","c9_r"],item:{id:"minecraft:glass_bottle",count:1},billboard:"vertical",teleport_duration:2,interpolation_duration:2,brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.85f,0.85f,0.85f]}}
  3. /execute if score #tick c9 matches 37 run summon item_display ~-7 ~2.42 ~0 {Tags:["c9_bottle","c9_b"],item:{id:"minecraft:glass_bottle",count:1},billboard:"vertical",teleport_duration:2,interpolation_duration:2,brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.85f,0.85f,0.85f]}}
  4. /execute if score #tick c9 matches 72.. run scoreboard players set #tick c9 0
  5. /scoreboard players add @e[tag=c9_bottle] c9 1
  6. /execute as @e[tag=c9_bottle,scores={c9=1..162}] at @s run tp @s ~0.08 ~ ~
  7. /execute as @e[tag=c9_bottle,scores={c9=163..175}] at @s run tp @s ~ ~-0.12 ~
  8. /kill @e[tag=c9_bottle,scores={c9=176..}]
  9. /execute if entity @e[tag=c9_r,scores={c9=46..54}] run particle dust{color:[1.0,0.15,0.35],scale:1.2} ~-3 ~2.85 ~0 0.03 0.25 0.03 0 6
  10. /execute as @e[tag=c9_r,scores={c9=50}] run data merge entity @s {item:{id:"minecraft:potion",count:1,components:{"minecraft:potion_contents":{custom_color:16721497}}}}
  11. /execute if entity @e[tag=c9_b,scores={c9=84..92}] run particle dust{color:[0.1,0.9,1.0],scale:1.2} ~0 ~2.85 ~0 0.03 0.25 0.03 0 6
  12. /execute as @e[tag=c9_b,scores={c9=88}] run data merge entity @s {item:{id:"minecraft:potion",count:1,components:{"minecraft:potion_contents":{custom_color:1762815}}}}
  13. /execute if entity @e[tag=c9_bottle,scores={c9=136..140}] run setblock ~4 ~5 ~0 redstone_block
  14. /execute unless entity @e[tag=c9_bottle,scores={c9=136..140}] run setblock ~4 ~5 ~0 waxed_copper_block

How it works

Frames from the test run

Automated Potion Bottling Conveyor Line - frame 1Automated Potion Bottling Conveyor Line - frame 2Automated Potion Bottling Conveyor Line - frame 3

Recorded on our own test server: 60 frames at about 9.8 fps. Our image check saw: Glass bottles move along a blackstone and copper belt under dripping hoppers, turning into red and cyan potions before passing under an extending piston toward a hopper and barrel.

Build it in your world

  1. Find an open, flat area at least 17 blocks wide and stand at the center facing north.
  2. Run each command from the Setup list once in order to create the scoreboard and build the copper-and-blackstone conveyor line.
  3. Place 14 repeating, always-active command blocks in a neat row underneath or beside your build, facing away from the conveyor.
  4. Paste one Loop command into each repeating command block, making sure all relative coordinates use the stage center (or wrap each command with execute positioned).
  5. Step back to the south side of the conveyor and watch glass vials spawn, fill under the ruby and cyan nozzles, get stamped by the piston, and pack into the barrel.

Remove it again 3 commands

  1. /kill @e[tag=c9_bottle]
  2. /scoreboard objectives remove c9
  3. /fill ~-7 ~0 ~-1 ~6 ~5 ~0 air

FAQ

Why do the vials glide smoothly instead of teleporting in jerky steps?

Each bottle is an item_display entity with teleport_duration:2, which tells the game client to interpolate position changes smoothly between ticks.

Can I change the potion colors coming out of the nozzles?

Yes. Update the color array in the dust particle commands and change the integer custom_color value inside the data merge commands to any RGB decimal color.

Commands used

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

More complex contraptions & cinematics