minecraft:behavior.follow_owner
Allows a mob to follow the player that owns it.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
speed_multiplier | Decimal | 1 | Movement speed multiplier of the mob when using this AI Goal |
start_distance | Decimal | 10 | The minimum distance the mob must be from its owner to start following it. |
stop_distance | Decimal | 2 | The distance at which the mob will stop following its owner. |
can_teleport | Boolean | true | Defines if the mob will teleport to its owner when too far away. |
post_teleport_distance | Integer | 3 | Defines how far (in blocks) the entity will be from its owner after teleporting. If not specified, it defaults to "stop_distance" + 1, allowing the entity to seamlessly resume navigation. |
ignore_vibration | Boolean | false | Defines if the mob should disregard following its owner after detecting a recent vibration. |
max_distance | Decimal | 60 | The maximum distance the mob can be from its owner to start following it. Applicable only when "can_teleport" is set to false. |
priority | Integermin 0 | 0 | |
control_flags | List of text | [] |
Example from the game files
This is how vanilla Cat uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.follow_owner": {
"priority": 4,
"speed_multiplier": 1.0,
"start_distance": 10,
"stop_distance": 2,
"post_teleport_distance": -1,
"ignore_vibration": true
}
}Used by 5
Vanilla entities with minecraft:behavior.follow_owner in their definition:
Related components
behavior.look_at_playerbehavior.temptbehavior.breedbehavior.mount_pathingbehavior.follow_parentbehavior.player_ride_tamedbehavior.find_mountbehavior.celebratebehavior.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_interestbehavior.admire_item