Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-271736

Eating animation is not cancelled when the food component is removed mid-animation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.20.6
    • None
    • Java 21, Windows 11 Home
    • Unconfirmed
    • (Unassigned)

      If you use an item modifier in a command to remove the food component of an item while eating it, like so:

      item modify entity @s weapon.mainhand {"function":"minecraft:set_components","components":{"!minecraft:food":{}}}

      The player continues to eat the item despite it no longer having the necessary component. Manually cancelling the animation proves that the removal was successful, as the item can no longer be eaten.

            Unassigned Unassigned
            InQuognito InQuognito
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: