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}]

Linked issues

MC-269629 Boats and chest boats cannot be eaten when they have the minecraft:food component Resolved MC-269631 Minecart variants with a food component set cannot be eaten when looking at a block Resolved MC-269638 Horse and wolf armor cannot be eaten when it has a food component set Resolved MC-269640 Brush item cannot be eaten when it has a food component set Resolved MC-269648 All bucket item types excluding powder snow cannot be eaten with a food component set Resolved

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