mojira.dev
MC-269699

Shields cannot be eaten when they have a food component

A shield with a food component cannot be eaten. Instead the shield is used as normal.

Purposely overwriting the shield block behavior with a food component should work in my opinion.

/give @s minecraft:shield[minecraft:food={nutrition:1, saturation_modifier:1}]

Attachments

Comments 3

The component permits consumption only when there are no alternative right-click actions available. It doesn't override any existing right-click functionalities.

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

mattp12

(Unassigned)

Community Consensus

Items

24w12a

Retrieved