minecraft:behavior.follow_owner for you with a switch.Get GodCraftOverview
minecraft:behavior.follow_owner is an entity component: it goes in the components object of a custom mob, or in one of its component groups. AI goal that makes a tamed mob follow the player who owns it, like a dog.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
speed_multiplier | number | 1 | Speed multiplier while following the owner. |
start_distance | number | 10 | The mob starts following once the owner is at least this far away. |
stop_distance | number | 2 | The mob stops following once it is this close to the owner. |
can_teleport | boolean | true | If true, the mob teleports to its owner when it falls too far behind. |
post_teleport_distance | integer | 3 | How far from the owner the mob lands after teleporting. |
ignore_vibration | boolean | false | If true, the mob does not stop following when it notices a vibration. |
max_distance | number | 60 | The farthest the owner can be for following to start. Only used when can_teleport is false. |
priority | integer | 0 | Lower numbers run first: when two goals compete, the one with the smaller priority wins.Range: 0 to … |
control_flags | Goal's control flags[] | none | Which body parts this goal takes over (move, look, jump), so goals using the same parts cannot run together. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:behavior.follow_owner": {
"speed_multiplier": 1,
"start_distance": 10,
"stop_distance": 2,
"can_teleport": true,
"post_teleport_distance": 3,
"ignore_vibration": false,
"max_distance": 60,
"priority": 0
}
}