A potion with the effects you pick: any level, any time, your own colour and name. Copy the /give command for a drinkable, splash or lingering potion, or for tipped arrows.
Command
What each part does
Level: 1 is the normal effect, 2 is the stronger one (Speed II), and it goes up to 255.
Seconds: how long the effect lasts when you drink the potion. Tick Forever for an effect that does not run out.
Hide the effect particles: the player gets the effect without the swirls around the body.
My own colour: the colour of the liquid, of the splash and of the arrow tip. Without it the game picks the colour from the effects.
Name: &a to &f and &0 to &9 are the 16 colours, 7FF99 is any hex colour, &l is bold.
Good to know
Give it a name: without one the game calls it "Uncraftable Potion".
A lingering potion gives a quarter of the time and a tipped arrow an eighth. The preview shows the time the player gets.
Instant Health, Instant Damage and Saturation work at once, so the seconds do not matter for them.
The command changed in 1.20.2, in 1.20.5 and in 1.21.5. Pick your version, or the command is refused or the potion has no effects.
"Forever" needs Minecraft 1.19.4 or newer.
You need operator rights, or cheats turned on, to use /give.
Long commands do not fit in chat (256). Paste them into a command block, or run them from the server console without the /.
Something wrong or missing here? Tell me, requests decide what I add next. More tools: all tools.