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
| Property | Type | Default | What it does |
|---|---|---|---|
delay_before_eating | Decimalmin 0 | 0 | Time in seconds the mob should wait before eating the item. |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.pickup_itemsbehavior.move_to_villagebehavior.harvest_farm_blockbehavior.lay_eggbehavior.move_indoorsbehavior.move_outdoorsbehavior.place_blockbehavior.raid_gardenbehavior.digbehavior.dragonscanningbehavior.drop_item_forbehavior.eat_blockbehavior.eat_mobbehavior.fertilize_farm_blockbehavior.hold_groundbehavior.inspect_bookshelfbehavior.move_through_villagebehavior.open_doorbehavior.random_search_and_digbehavior.restrict_open_doorbehavior.snackingbehavior.stroll_towards_villagebehavior.take_blockbehavior.transport_items