Entity Documentation - 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.

Note

Requires food items to be in the entity's inventory in order to eat the food.

Eat Carried Item Behavior Properties

Name Default Value Type Description Example Values
delay_before_eating not set Decimal number Time in seconds the mob should wait before eating the item. Fox: 28
priority not set Integer number As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. Fox: 12

Samples

Fox

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