1

I am making an RPG server and so I'm also making shops where you use points to get items, everything is working but the potions, I tried to look up how to give potions with command block but every answer tells me to use numbers (ID for the potion) which does not work, how do I give a potion with the effects already in game with command block?

6
  • 2
    Are you sure you tried as said? Can you show some of the ways you found online? Can you also show perhaps a bit of your game's progress? Apr 13, 2021 at 9:55
  • 2
    Does this answer your question? How does the brewing potion work in Minecraft?
    – Lynt
    Apr 13, 2021 at 16:59
  • 2
    @loan_2314 thats not commands
    – Penguin
    Apr 13, 2021 at 19:58
  • 1
    @Penguin mm. I was figuring it being it.
    – Lynt
    Apr 13, 2021 at 20:03
  • 1
    @loan_2314 I'm a bit confused as to what you're saying, but if you disagree then that duplicate has nothing to do with commands, this is entirely different
    – Penguin
    Apr 13, 2021 at 21:45

2 Answers 2

2

To give a custom potion to a player you can use the command:

/give <selector> minecraft:potion{CustomPotionEffects:[{Id:<id>,Duration:<duration>}],Potion:"minecraft:water"}

Replace <selector> with whatever you are giving it to, <id> with the numerical ID for what you want, and <duration> with the duration in ticks. See here for a list of potion IDs.

If you want multiple effects on one potion you can duplicate {Id:<id>,Duration:<duration>} within its list multiple times, separated with commas.

2
  • The OP doesn't seem to understand what IDs are supposed to be and where. They're here in the Effect IDs section. May 16, 2021 at 7:59
  • Edited it and added link to answer.
    – Rami
    May 17, 2021 at 12:49
0

If you're fine with using vanilla potions you can use this site to generate the command for you: https://www.digminecraft.com/generators/give_potion.php

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .