mojira.dev
MC-108934

The "ench:[]" tag doesn't have glint with potions, but name is colored otherwise

If a player give themselves a potion that has the "ench:[]" tag, the potion doesn't show the enchanted glint like other potions, however, the name of the potion is blue indicating that it's enchanted. The same is applied to the Water Bottle, Awkward, Mundane, Uncraftable, and Thick Potions respectively.

The first two screenshots show the two potions with the right being a regular black potion, and the left being a potion with the "ench:[]" tag. They are black as to make the them more visible. As the last picture is the two of them side by side, with the potion tab opened for reference. The bug also applies to the splash potion and lingering potion counterparts.

This is weird as I'm pretty sure this worked in 1.8 (Please confirm).

Many other items don't seem to have this issue with the "ench:[]" tag.

Example command

/give @p potion 1 0 {Potion:"minecraft:water",ench:[]}

Linked issues

Attachments

Comments

migrated

In the new pre-release it seems only enchantable items have the glint display when they have the ench:[] tag. My custom items have the tag but display normally, all tools are still the same.

Skylinerw

@@unknown It's a bit different than that: the ench tag now requires there to be a compound existing within it. The id and lvl tags will default to 0, but you can set lvl to -1 to avoid applying the Protection enchantment (and will display as it did when using ench:[]).

/give @p minecraft:stone 1 0 {ench:[{id:-1s}]}
migrated

I don't think the bug here was fixed, in fact it still didn't do anything to potions. As applying the Ench:[(id:0)] tag still doesn't do anything to potions. I do the same to any other item and the effect shows. One fix should be to make so that the "ench:[]" tag overwrites the potion enchantment effect.

The issue I see is how potions are enchanted based on the effect and not the tag. If it's a potion without a glint, it wont show a glint, no matter what. But if it does, it always shows the glint. However!! I don't what it so that items cannot be enchanted at all, as that will break a lot of immersion and command block contraptions. Really the change should be reverted as it didn't do anything besides break everything in previous snapshots. I'm only stating that only potions are still effected because of the weird way the enchantment glint applies to them.

migrated

Is it Fixed or not?

Skylinerw

@@unknown Look at the resolution, which says "Unresolved". The list of fixed versions is not removed; it states the versions that it was attempted to be fixed. The resolution status is what's important.

Erik Broes

The fix was to remove the blue text if there is not an actual enchant 🙂

marcono1234

This is not really a fix like stated before.

/give @p potion 1 0 {Potion:"minecraft:water",ench:[{id:1s,lvl:1s}]}

is still the same way broken. You just removed a functionality which was widely used by the community :/

Erik Broes

^^ is properly glinted in 1.11+

migrated

Erik Broes

Confirmed

command_block, inventory, item, rendering, texture

Minecraft 1.10.2, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a

Minecraft 1.11 Pre-Release 1

Retrieved