Follow Owner¶
文档版本:1.21.50.25
Allows the mob to follow the player that owns them.
架构¶
follow_owner:
{
priority "priority"
number "post_teleport_distance" : opt
speed_multiplier "speed_multiplier"
boolean "can_teleport" : opt
boolean "ignore_vibration" : opt
number "max_distance" : opt
number "start_distance" : opt
number "stop_distance" : opt
}
priority
:priority
post_teleport_distance
: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.
speed_multiplier
:speed_multiplier
can_teleport
:boolean- Specify if the mob can teleport to the player if it is too far away.
ignore_vibration
:boolean- Specify if the mob will follow the owner if it has heard a vibration lately.
max_distance
:number- The maximum distance in blocks this mob can be from its owner to start following, only used when canTeleport is false.
start_distance
:number- The distance in blocks that the owner can be away from this mob before it starts following it.
stop_distance
:number- The distance in blocks this mob will stop from its owner while following it.