mojira.dev
MC-269723

Spawn eggs cannot be eaten when a food component is set

Spawn egg items cannot be eaten when they have a food component set. Instead, holding right click will only either use the spawn egg, or do nothing.

Steps to Reproduce:

  1. Get the following item:

    /give @p minecraft:allay_spawn_egg[food={nutrition:1,saturation_modifier:1}]
  2. Try and eat it

Observed & Expected Results:

❌ - The item is not edible, even when looking away from any block faces.
✔ - The item would be edible, as it's primary function is not possible to execute.

Linked issues

MC-269638 Horse and wolf armor cannot be eaten when it has a food component set Resolved MC-269631 Minecart variants with a food component set cannot be eaten when looking at a block Resolved MC-269640 Brush item cannot be eaten when it has a food component set Resolved MC-269655 Trident enchanted with riptide which has a food component cannot be eaten outside of water and/or rain Resolved MC-269658 Bows and crossbows with a food component set cannot be eaten in survival/adventure mode if the player has no arrows in their inventory Resolved

Comments 1

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

[Mod] Jingy

(Unassigned)

Confirmed

Items

component, food_component, spawn_egg

24w12a

Retrieved