Mojira Archive
MC-271736

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

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.

Cannot Reproduce

InQuognito

2024-05-07, 09:48 PM

2024-06-28, 06:03 PM

2024-05-16, 02:08 AM

0

0

Unconfirmed

(Unassigned)

1.20.6

-