mojira.dev
MC-298703

Item component "minecraft:item_name" does not affect to potion

If trying to gain a potion with [item_name=”some_text”], the shown name will be “Uncraftable Potion“ instead of “some_text“.

How to reproduce:
Simply type the following command after creating the world with cheating option on (to able to type command).

give @p potion[item_name="some_text"]

The result it should be:
Player get the potion with name “some_text“.

The result we actually get:
Player get the potion with name “Uncraftable Potion“.

Linked issues

Comments 2

Does MC-277845 describe your issue?

Thanks, sorry for the duplicates.

990293kwi

(Unassigned)

Unconfirmed

(Unassigned)

1.21.5

Retrieved