mojira.dev
MC-233606

Loot tables order nbt of items incorrectly, making them unable to stack with copies of themselves

When a loot table generates an item, custom nbt is applied to it in such a way that they are wholly incompatible with the same item given with the /give command. This also means villagers cannot use these items as trade components, as the system does not recognize the items
The attached image shows how the game categorizes both types of items when they're in a chest. Note they have the exact same nbt data, only in a different order

Linked issues

Attachments

Comments 2

can you please provide the steps to reproduce this bug?

Thank you for your report!
We're tracking this issue as MC-124186, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as Won't Fix, which means this is considered a bug but won't be fixed. The description of that ticket or the comments might explain the rationale. 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
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

Gregory Mills

(Unassigned)

Unconfirmed

(Unassigned)

1.17.1

Retrieved