minecraft:behavior.snacking

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

Properties

PropertyTypeDefaultWhat it does
itemsList of text or object[]Items that we are interested in snacking on
snacking_cooldownDecimal7.5The cooldown time in seconds before the mob is able to snack again
snacking_cooldown_minDecimal0.5The minimum time in seconds before the mob is able to snack again
snacking_stop_chanceDecimal0.0017This is the chance that the mob will stop snacking, from 0 to 1
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

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

{
  "minecraft:behavior.snacking": {
    "priority": 2,
    "snacking_cooldown": 22.5,
    "snacking_cooldown_min": 20,
    "snacking_stop_chance": 0.001334,
    "items": [
      {
        "name": "minecraft:bamboo"
      },
      {
        "name": "minecraft:cake"
      }
    ]
  }
}

Used by 1

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

Related components