Self-Brewing Potion Factory

Build an automated alchemy lab with floating ingredient pedestals, arcing reagents into a soul-fire cauldron, and a self-filling dark oak potion rack.

Java EditionHolograms & Display EntitiesHard24 commandsTested on a real 26.2 & 26.3 server
Glowing potion ingredients launch from floating pedestals toward a central brewing cauldron at night. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsMysticDarkCyanBlackPurpleDecorationAdventure MapServer LobbyItem displaysBlock building (fill/setblock/clone)Rotation math21+ commands

The Self-Brewing Potion Factory turns the middle of your world into a living alchemy workshop. Four floating pedestals hold oversized, glowing ingredients around a central water cauldron heated by soul fire, while a dark oak bottling rack stands ready on the side.

Every second, blaze powder, ghast tears, magma cream, and glistering melon slices leap from the floating pedestals and arc through the air in trails of colorful sparks. When each ingredient splashes into the bubbling cauldron, a newly brewed potion floats across to the dark oak rack.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /fill ~-5 ~ ~-5 ~5 ~ ~5 polished_blackstone_bricks
  3. /fill ~-2 ~ ~-2 ~2 ~ ~2 crying_obsidian
  4. /setblock ~ ~ ~ soul_campfire
  5. /setblock ~ ~1 ~ water_cauldron[level=3]
  6. /fill ~-3 ~2 ~-3 ~3 ~2 ~3 end_stone_brick_slab[type=top] replace air
  7. /fill ~-3 ~2 ~-2 ~3 ~2 ~2 air
  8. /fill ~-2 ~2 ~-3 ~2 ~2 ~3 air
  9. /fill ~4 ~1 ~-2 ~4 ~3 ~2 dark_oak_shelf
  10. /summon marker ~ ~1.5 ~ {Tags:["c9_pot","c9_hub"]}

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

  1. /scoreboard players add #c9_clock c9_tick 1
  2. /execute if score #c9_clock c9_tick matches 81.. run scoreboard players set #c9_clock c9_tick 1
  3. /execute unless entity @e[tag=c9_ped] run summon item_display ~-3 ~3.1 ~-3 {Tags:["c9_pot","c9_ped"],billboard:"center",Glowing:1b,glow_color_override:16753920,item:{id:"minecraft:blaze_powder",count:1},transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[1.3f,1.3f,1.3f],right_rotation:[0f,0f,0f,1f]}}
  4. /execute if score #c9_clock c9_tick matches 2 run summon item_display ~3 ~3.1 ~-3 {Tags:["c9_pot","c9_ped"],billboard:"center",Glowing:1b,glow_color_override:65535,item:{id:"minecraft:ghast_tear",count:1},transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[1.3f,1.3f,1.3f],right_rotation:[0f,0f,0f,1f]}}
  5. /execute if score #c9_clock c9_tick matches 3 run summon item_display ~-3 ~3.1 ~3 {Tags:["c9_pot","c9_ped"],billboard:"center",Glowing:1b,glow_color_override:16729344,item:{id:"minecraft:magma_cream",count:1},transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[1.3f,1.3f,1.3f],right_rotation:[0f,0f,0f,1f]}}
  6. /execute if score #c9_clock c9_tick matches 4 run summon item_display ~3 ~3.1 ~3 {Tags:["c9_pot","c9_ped"],billboard:"center",Glowing:1b,glow_color_override:16711830,item:{id:"minecraft:glistering_melon_slice",count:1},transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[1.3f,1.3f,1.3f],right_rotation:[0f,0f,0f,1f]}}
  7. /execute if score #c9_clock c9_tick matches 5 run summon item_display ~-3 ~3.1 ~-3 {Tags:["c9_pot","c9_ing"],billboard:"center",Glowing:1b,glow_color_override:16753920,item:{id:"minecraft:blaze_powder",count:1}}
  8. /execute if score #c9_clock c9_tick matches 25 run summon item_display ~3 ~3.1 ~-3 {Tags:["c9_pot","c9_ing"],billboard:"center",Glowing:1b,glow_color_override:65535,item:{id:"minecraft:ghast_tear",count:1}}
  9. /execute if score #c9_clock c9_tick matches 45 run summon item_display ~-3 ~3.1 ~3 {Tags:["c9_pot","c9_ing"],billboard:"center",Glowing:1b,glow_color_override:16729344,item:{id:"minecraft:magma_cream",count:1}}
  10. /execute if score #c9_clock c9_tick matches 65 run summon item_display ~3 ~3.1 ~3 {Tags:["c9_pot","c9_ing"],billboard:"center",Glowing:1b,glow_color_override:16711830,item:{id:"minecraft:glistering_melon_slice",count:1}}
  11. /execute as @e[tag=c9_ing] at @s facing ~ ~2.5 ~ run tp @s ^ ^0.06 ^0.24
  12. /execute at @e[tag=c9_ing] run particle dust{color:[1.0,0.75,0.2],scale:1.4} ~ ~ ~ 0.08 0.08 0.08 0 3 force
  13. /execute as @e[tag=c9_ing] at @s if entity @e[tag=c9_hub,distance=..1.2] run summon item_display ~4 ~2.2 ~ {Tags:["c9_pot","c9_bottle"],billboard:"center",Glowing:1b,glow_color_override:16711935,item:{id:"minecraft:potion",count:1,components:{"minecraft:potion_contents":{custom_color:16711935}}}}
  14. /execute at @e[tag=c9_hub] run particle witch ~ ~0.2 ~ 0.35 0.4 0.35 0.02 4 force

How it works

Frames from the test run

Self-Brewing Potion Factory - frame 1Self-Brewing Potion Factory - frame 2Self-Brewing Potion Factory - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: Four floating pedestals with glowing potion ingredients shoot arcing trails of items toward a central bubbling cauldron on a blackstone platform.

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 and run the 10 setup commands in chat to build the blackstone floor, floating corner pedestals, soul-fire cauldron, and dark oak rack.
  2. Place a repeating command block underneath or beside the platform, set it to Always Active, and paste in the first loop command.
  3. Chain 13 chain command blocks (Always Active, Unconditional) onto the repeating block and paste the remaining loop commands in order.
  4. Add two extra chain command blocks at the end if you want automatic cleanup of finished ingredients and old bottles: <code>/execute at @e[tag=c9_hub] run kill @e[tag=c9_ing,distance=..1.2]</code> and <code>/execute if score #c9_clock c9_tick matches 80 run kill @e[tag=c9_bottle]</code>.
  5. Watch the four glowing ingredients leap in sequence from the floating pedestals into the bubbling cauldron while fresh potions appear on the rack.

Use it with real players

To let players collect real potions from the bottling rack, replace the display summon in loop command 13 with /execute as @e[tag=c9_ing] at @s if entity @e[tag=c9_hub,distance=..1.2] run summon item ~3.5 ~2.2 ~ {Item:{id:"minecraft:potion",count:1,components:{"minecraft:potion_contents":{potion:"minecraft:swiftness"}}}} so physical potion items pop out in front of the dark oak shelves.

Remove it again 3 commands

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

FAQ

Why do the ingredients curve upward instead of flying in a straight line?

The teleport command faces a target point one block above the cauldron (~ ~2.5 ~) and adds an upward local offset (^0.06) along with forward motion (^0.24), which bends the path into an arc.

Can I change which ingredients sit on the four floating pedestals?

Yes. Replace the item IDs (blaze_powder, ghast_tear, magma_cream, glistering_melon_slice) in loop commands 3 through 10 with any brewing items you prefer.

Commands used

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

Similar creations

Join 9Minecraft News & Guides