Entity Documentation - minecraft:behavior.eat_carried_item
minecraft:behavior.eat_carried_item
compels an entity to eat any item in its inventory and gain the benefits of the item.
Important
minecraft:behavior.eat_carried_item
requires food items to be in the entity's inventory in order to eat the food.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
delay_before_eating | not set | Decimal | Time in seconds the mob should wait before eating the item. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
Example
"minecraft:behavior.eat_carried_item":{
"priority": 2,
"delay_before_eating":3.25
}
Vanilla entities examples
fox
"minecraft:behavior.eat_carried_item": {
"priority": 12,
"delay_before_eating": 28
}
Vanilla entities using minecraft:behavior.eat_carried_item
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for