Relates to MC-312596.
Much like with banners, there exist no checks to tell if an inline banner pattern is valid for a shield to display. This means that executing a command with an invalid shield pattern gives an item which has no texture to display, resulting in the error fallback texture being used, which is something that should never happen if the active resource packs are all correctly configured.
To reproduce, run this command: /give @s minecraft:shield[minecraft:banner_patterns=[{pattern:{asset_id:"minecraft:some_nonexistent_pattern_type",translation_key:""},color:"white"}]]
Expected results: either the game would catch that the banner pattern ID is invalid and block the command, or the invalid banner pattern would be deleted from the item as it is given.
Actual results: we get a shield which looks completely broken and should not exist.
Attachments
Comments 7
Your “expected behavior” is incoherent because asset IDs may or may not exist on any client, so the server can’t reject them.
It would depend on what data pack is active on the server, would it not? This is why invalid painting variants, wolf variants, and so on can’t be created with commands.
Well you can reference a banner pattern ID, and the server should validate that it is defined. But in your command, you're inlining a banner pattern definition, so no separate definition file is required.
asset_id is a client-side atlas entry that may or may not exist.
Since 1.21.6, painting definitions can no longer be inlined in an item stack.
But this behavior is not related to inlining. You can just as well create a definition for either banner patterns or paintings in a data pack, and item stacks referencing that definition will appear with the missing texture on any clients that don’t have an atlas entry for the specified asset_id.
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
Thank you for helping us improve Minecraft! We saved your files: