minecraft:behavior.beg
Allows this mob to look at and follow the player that holds food they like.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
items | List of text or object | [] | List of items that this mob likes |
look_distance | Decimal | 8 | Distance in blocks the mob will beg from |
look_time | Object | {"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 |
min | Integer | 0 | |
max | Integer | 0 | |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.look_at_playerbehavior.temptbehavior.breedbehavior.mount_pathingbehavior.follow_parentbehavior.player_ride_tamedbehavior.find_mountbehavior.celebratebehavior.follow_ownerbehavior.stay_while_sittingbehavior.look_at_trading_playerbehavior.random_look_around_and_sitbehavior.take_flowerbehavior.trade_with_playerbehavior.celebrate_survivebehavior.controlled_by_playerbehavior.follow_caravanbehavior.follow_mobbehavior.make_lovebehavior.ocelot_sit_on_blockbehavior.playbehavior.receive_lovebehavior.share_itemsbehavior.trade_interest