mojira.dev
MC-271797

food component doesn't work properly on honey bottles

Using item data components, it should be possible to override food item properties, however, honey bottles are only partially compatible.

/give @p minecraft:honey_bottle[minecraft:food={"nutrition": 1,"saturation": 0,"can_always_eat": true,"eat_seconds": 10}]

This command should set the eat_seconds to 10s, but it has no effect. On the other hand, all other changes apply, altering the nutrition and saturation properly.

Even when trying to completely remove the food component: /give @p minecraft:honey_bottle[!minecraft:food] The honey bottle can still be consumed, but provides no nutrition or saturation.

This is in contrast to how it works with any other food item, where it cannot be eaten at all.

Comments 2

Removed references to potions per MC-270924

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

BirneMann

(Unassigned)

Confirmed

(Unassigned)

1.20.6, 24w18a, 24w19b

Retrieved