mojira.dev
MC-273632

Opening or updating the creative inventory while holding a food item with the using_converts_to tag causes the item to animate up and down

If the player is holding a food item with a custom using_converts_to tag inside its food component and they open their creative inventory or click on any item in it, the food item moves up and down on the screen.

How to reproduce:

  1. Run the following command:

    /give @s minecraft:cooked_beef[minecraft:food={nutrition:8,saturation:12.8,using_converts_to:{id:"minecraft:stick"}}]
  2. Switch to creative mode.

  3. Open your inventory.
    → ❌ The food item animates.

  4. Click on another item in your inventory.
    → ❌ The food item animates again.

Expected result:

The item would not animate randomly.

Observed result:

The item moves up and down when the inventory is opened or updated.

Linked issues

Attachments

Comments 3

Can confirm. Only occurs with the Creative mode inventory, by the way.

Can confirm. Additionally this does not apply for items having this component as a default (like a Mushroom Stew)

This issue seems to have been fixed in 24w34a with the addition of the use_remainder component and the removal of the using_converts_to tag from the food component.

[Mod] ManosSef

(Unassigned)

Confirmed

Platform

Low

Items

1.21, 1.21.1

24w34a

Retrieved