Arqade Asked by Cameron Josephson on August 27, 2021
I know this is how you get a nausea potion:
/give @p minecraft:potion 1 0 {CustomPotionEffects:[{Id:9,Duration:100}]}
but how do I change it so its name it different or so that the potions color is different?
The Name
tag, held within the display
compound, specifies the item's name.
As of 1.11, all potion items must have a proper Potion
string tag in order for its color to be modifiable. You can use a value of "minecraft:water" to not add any extra effects to it, and it will be colored based solely on color mixing from CustomPotionEffects
:
/give @p minecraft:potion 1 0 {Potion:"minecraft:water",CustomPotionEffects:[{Id:9,Duration:100}],display:{Name:"Custom Name"}}
If you want to specify a color directly, you can use the CustomPotionColor
integer tag, which takes a decimal color value (example color picker here). For example, the following gives a white-colored potion:
/give @p minecraft:potion 1 0 {Potion:"minecraft:water",CustomPotionColor:16777215,CustomPotionEffects:[{Id:9,Duration:100}],display:{Name:"Custom Name"}}
Answered by Skylinerw on August 27, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP