mojira.dev
MC-109917

Can't customize the empty potion color

When Minecraft generate a Custom Potion with multple effect, the color of each color is merged to create a unique color for the custom potion.

Example:

/give @p minecraft:potion 1 0 {Potion:"minecraft:water",CustomPotionEffects:[{Id:3},{Id:6}]}

ID 3 is yellow, ID 6 is red, the result is an orange potion.

This also work with effects added to real potion, example:

/give @p minecraft:potion 1 0 {Potion:"minecraft:fire_resistance",CustomPotionEffects:[{Id:6}]}

fire_resistance is orange, ID 6 is red, the result is a dark orange potion.

But with empty potion (uncraftable potion), the effects colors are ignore, and the color is forced to pink:

/give @p minecraft:potion 1 0 {Potion:"minecraft:empty",CustomPotionEffects:[{Id:6}]}

empty is pink, ID 6 is red, the result is ... pink, the effect color is ignored.

The normal behavior should be the ignore the empty potion color, the pink color should apply only when there are no effect, when there are effect the empty potion should work like the water potion: only the effect color are used.

For now the only solution is to use the "water" potion as base for custom potions... but the name of water potion is "Water Potion", I think "Uncraftable Potion" (name for empty potion) is a more correct name for potion that are not craftable.

Because of this bug, map maker need to add unneeded NBT tags like CustomPotionColor or display/Name to have a valid potion.

Comments 8

This report can be related to MC-107192, but not the same: MC-107192 say the Potion tag is needed but don't speak about effect color, MC-109917 report say that the color is not correct, don't say anything about the Potion tag.

Does this problem still affect Minecraft 1.11?

Empty means that it's a not-valid potion.

Hello FVbico, I think there is a misunderstood.

empty is not the potion name, it's the potion ID. It's like if you say that the ID 478 means invalid.

The potion name is "Not Craftable potion", that means the potion is not craftable, and this is more sense: You can't have an empty potion if you create a potion with random ingredient: the potion is not empty, but it is not craftable.

And I think you will agree with me that "not craftable" don't means not valid, that means you can't craft them with the crafting table, but only with commands, it's the bug I report here.

"not valid" should means there are an error, it's not an error to have custom effect for a potion, it's a customize 😉 Maybe mojang don't want player can make a custom potion with the not craftable potion (why ?), but I think it's more probably a bug, don't you agree ?

Edit: And yes 1.11 is still affected

It's a valid item, but not a valid potion, there's a difference.

The uncraftable potion is only added as a placeholder for potions without valid effects, assign it to water, and it's a valid potion, and will act as such.

There's a reason the color is pink, it references the missing texture texture.

In short, the uncraftable/empty potion is an invalid potion, and you shouldn't have it.

Ok, so if I understand you, the water potion is a potion with water and nothing else (because it is its name), that's why the color is blue... (the same logic)

Also that why it's not possible to add any others custom effects to the water potion, because it's water, not custom...
Oops, no, it's possible the customize the water potion, and the color can change.

The better solution should be to wait for an official answer from Mojang.... but it will be never possible because the bug report is now closed 😞

See it like this: the uncraftable/empty potion is an invalid potion, as such all bugs about them are invalid (asside from them being obtainable without commands), same with the giant, NoAI, etc.

Ok, so should I open a bug report because it's possible to add custom effect to the empty potion ?
empty means invalid, the pink color means invalid, it's not normal that people can add effects to an uncraftable potion don't you agree ?

There are a problem with this potion.
If I'm right, the color should affect this potion. If you right, it should not be possible to add custom effect to this potion. But it's not normal to allow player to add custom effect but not apply color, don't you agree ?

Tronics

(Unassigned)

Unconfirmed

Minecraft 1.11 Pre-Release 1, Minecraft 1.11

Retrieved