How can I give myself certain potions via commands?



  • 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?



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

    /give  minecraft:potion{CustomPotionEffects:[{Id:,Duration:}],Potion:"minecraft:water"}
    

    Replace with whatever you are giving it to, with the numerical ID for what you want, and 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:,Duration:} within its list multiple times, separated with commas.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2