1. Wiki
  2. /Entities
  3. /minecraft:behavior.follow_owner

minecraft:behavior.follow_owner

Don't want to write this by hand? GodCraft sets minecraft:behavior.follow_owner for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
speed_multipliernumber1Speed multiplier while following the owner.
start_distancenumber10The mob starts following once the owner is at least this far away.
stop_distancenumber2The mob stops following once it is this close to the owner.
can_teleportbooleantrueIf true, the mob teleports to its owner when it falls too far behind.
post_teleport_distanceinteger3How far from the owner the mob lands after teleporting.
ignore_vibrationbooleanfalseIf true, the mob does not stop following when it notices a vibration.
max_distancenumber60The farthest the owner can be for following to start. Only used when can_teleport is false.
priorityinteger0Lower numbers run first: when two goals compete, the one with the smaller priority wins.Range: 0 to …
control_flagsGoal's control flags[]noneWhich 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
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more