When a shield has the base_color
component from a banner, any custom item_name
component is not shown, with the game instead preferring “Color Shield” as the default name. “Color Shield” does not seem to be a hard-coded custom name, as using an anvil or otherwise removing the custom_name
component does not solve the issue.
The custom_name
component is unaffected and overwrites the “Color Shield” name as intended.
Steps to Reproduce
Run this command:
/give @s shield[item_name="Ocean Shield"] 1
Notice that the item in your inventory is named “Ocean Shield” ✔
Run this command:
/give @s shield[item_name="Ocean Shield",base_color="light_blue"] 1
Notice that the item in your inventory is named “Light Blue Shield”, not “Ocean Shield” ❌
Linked issues
duplicates 1
Comments 3
This ticket duplicates MC-276600
Thank you for your report!
We're tracking this issue in MC-276600, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Intentional. From the 24w37a changelogs:
MINECRAFT:ITEM_NAME
Name provided by this component always has the lowest priority
That means it will be overridden by components like minecraft:potion_contents
Seems like the minecraft:base_color component overrides the item_name component.