编辑

Entity Documentation - minecraft:behavior.follow_target_captain

Allows mob to move towards its current target captain.

Note

Requires a entity to be labeled as a captain in a group. An example of this is the minecraft:is_illager_captain component used in the pillager.json entity definition.

Follow Target Captain Behavior Properties

Name Default Value Type Description
follow_distance 0 Decimal number Defines the distance in blocks the mob will stay from its target while following.
priority not set Integer number As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
within_radius 0 Decimal number Defines the maximum distance in blocks a mob can get from its target captain before giving up trying to follow it.

Samples