编辑

Entity Documentation - minecraft:behavior.snacking

Allows the mob to take a load off and snack on food that it found nearby.

Entity Snacking Behavior Properties

Name Default Value Type Description
control_flags [] Control Flags choices
items [] String Items that we are interested in snacking on
items (as Keyed set of strings) not set Keyed set of strings
priority 0 Integer number As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
snacking_cooldown 7.5 Decimal number The cooldown time in seconds before the mob is able to snack again
snacking_cooldown_min 0.5 Decimal number The minimum time in seconds before the mob is able to snack again
snacking_stop_chance 0.0016666667070239782 Decimal number This is the chance that the mob will stop snacking, from 0 to 1

Control Flags choices

Value Title Description
jump Jump
look Look
move Move