Allows a mob to follow the player that owns it.
Note
Requires the entity to be marked as an owner through taming.
Entity Follow Owner Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| can_teleport | true | Boolean true/false | Defines if the mob will teleport to its owner when too far away. | |
| control_flags | [] | Control Flags choices | ||
| ignore_vibration | false | Boolean true/false | Defines if the mob should disregard following its owner after detecting a recent vibration. | |
| max_distance | 60 | Decimal number | The maximum distance the mob can be from its owner to start following it. Applicable only when "can_teleport" is set to false. | |
| post_teleport_distance | 3 | Integer number | 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. | |
| 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. | Allay: 6, Parrot: 3 |
| speed_multiplier | 1 | Decimal number | Movement speed multiplier of the mob when using this AI Goal | Allay: 8, Parrot: 1 |
| start_distance | 10 | Decimal number | The minimum distance the mob must be from its owner to start following it. | Allay: 16, Parrot: 5 |
| stop_distance | 2 | Decimal number | The distance at which the mob will stop following its owner. | Allay: 4, Parrot: 1 |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Samples
Allay
"minecraft:behavior.follow_owner": {
"can_teleport": false,
"priority": 6,
"ignore_vibration": false,
"speed_multiplier": 8,
"start_distance": 16,
"stop_distance": 4
}
Parrot
"minecraft:behavior.follow_owner": {
"priority": 3,
"speed_multiplier": 1,
"start_distance": 5,
"stop_distance": 1
}