Mojira Archive
MC-272409

Item entity's name ignores `item_name` component

Enter the following command to give yourself an item with a custom minecraft:item_name component:

/give @s minecraft:diamond[minecraft:item_name='"item name"']

Then drop the item and enter:

/say @e[type=minecraft:item,limit=1,sort=nearest]

It prints "Diamond" to the chat instead of "item name".

(The same applies to the minecraft:custom_name component, but I suspect that's not a bug since that's never worked before.)

Fixed

Grant Gryczan

2024-05-24, 04:19 AM

2024-10-25, 06:57 AM

2024-10-25, 06:57 AM

2

1

Community Consensus

Normal

Platform

Commands, Items

1.20.6, 24w21b, 1.21

24w36a