The item_name component no longer overrides the name of a shield with a base color or a lodestone compass. This worked prior to 24w36a.
The 24w37a changelog mentions that the item_name component now has the lowest priority, but as far as I know there is no workaround for this case other than using the custom_name component.
How to reproduce:
Execute the following commands:
/give @s minecraft:shield[minecraft:item_name='"Test"',minecraft:base_color=white]
/give @s minecraft:compass[minecraft:item_name='"Test"',minecraft:lodestone_tracker={}]
Look at the names of the items you were given.
Linked issues
is duplicated by 3
Attachments
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
This also affects lodestone compasses and player heads