minecraft:behavior.eat_carried_item

If the mob is carrying a food item, the mob will eat it and the effects will be applied to the mob.

Properties

PropertyTypeDefaultWhat it does
delay_before_eatingDecimalmin 00Time in seconds the mob should wait before eating the item.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Fox uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.eat_carried_item": {
    "priority": 12,
    "delay_before_eating": 28
  }
}

Used by 1

Vanilla entities with minecraft:behavior.eat_carried_item in their definition:

Related components