minecraft:behavior.beg

Allows this mob to look at and follow the player that holds food they like.

Properties

PropertyTypeDefaultWhat it does
itemsList of text or object[]List of items that this mob likes
look_distanceDecimal8Distance in blocks the mob will beg from
look_timeObject{"max": 4, "min": 2}The range of time in seconds this mob will stare at the player holding a food they like, begging for it
minInteger0
maxInteger0
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

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

{
  "minecraft:behavior.beg": {
    "priority": 9,
    "look_distance": 8,
    "look_time": {
      "min": 20,
      "max": 40
    },
    "items": [
      {
        "name": "minecraft:bone"
      },
      {
        "name": "minecraft:porkchop"
      },
      {
        "name": "minecraft:cooked_porkchop"
      },
      {
        "name": "minecraft:chicken"
      },
      {
        "name": "minecraft:cooked_chicken"
      },
      {
        "name": "minecraft:beef"
      },
      {
        "name": "minecraft:cooked_beef"
      },
      {
        "name": "minecraft:rotten_flesh"
      },
      {
        "name": "minecraft:muttonraw"
      },
      {
        "name": "minecraft:muttoncooked"
      },
      {
        "name": "minecraft:rabbit"
      },
      {
        "name": "minecraft:cooked_rabbit"
      }
    ]
  }
}

Used by 1

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

Related components