0

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
  • 1
    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? – mindstormsboi Apr 13 at 9:55
  • 1
    Does this answer your question? How does the brewing potion work in Minecraft? – Wabbit. Apr 13 at 16:59
  • 1
    @loan_2314 thats not commands – Penguin Apr 13 at 19:58
  • @Penguin mm. I was figuring it being it. – Wabbit. Apr 13 at 20:03
  • @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 at 21:45
0

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.

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.