Automatically fill dispensers in Minecraft?

Br
14

I'm looking for a command with which you can automatically fill in Minecraft Dispenser (which is never an instruction).

My

Which version?

Br
1

1.15.2

gl

Which item should be in the launcher?

Br

Throwing potion

gl

And what throwing potion?

My

Try https://mcstacker.net/. There you can select at / setblock dispenser and then select the item in the slots. Then use a clock to execute the command or simply set the command block accordingly.

Br

Poisoning

gl

Ok, and in which direction does the thrower point?

Br

Is that automatically filled with water?

Be
1

/ data merge block ~ ~ ~ {Items: [{Slot: 0b, id: "minecraft: splash_potion", Count: 1b, tag: {Potion: "minecraft: swiftness"}}]}

Simply enter coordinates and potion

Br

West

Br

Thank you.

My

It always replaces the block with the full dispenser

gl

You write in a command block (repeat | unconditional | always active):

/ setblock coordinates of the thrower minecraft: dispenser [facing = west] {Items: [{Slot: 0b, id: "minecraft: splash_potion", Count: 1b, tag: {Potion: "minecraft: poison"}}}]}