minecraft:behavior.follow_target_leader

Allows mob to move towards its target leader.

Properties

PropertyTypeDefaultWhat it does
within_radiusDecimal0Defines the maximum distance in blocks a mob can get from its target leader before giving up trying to follow it.
follow_distanceDecimal0Defines the distance in blocks the mob will stay from its target while following.
always_look_for_leaderBooleanfalseIf true, the mob will always search for a valid leader to follow if none is found or current leader is not valid anymore
leader_filtersObject or List of object{"AND": null, "NOT": null, "OR": null, "all": null, "all_…The filters to use when determining if a mob is a suitable leader or not.
testText—The name of the test to apply.
subjectBoolean or Integer or Decimal or Text—The subject of this filter test.
operatorBoolean or Integer or Decimal or Text—The comparison to apply with 'value'.
domainBoolean or Integer or Decimal or Text—The domain the test should be performed in.
valueBoolean or Integer or Decimal or Text—The value being compared with the test.
search_cooldownInteger20Number of ticks that must pass before a new search is initiated after a target is not found, lost, or becomes invalid.
speed_multiplierDecimal1Movement speed multiplier of the mob when using this AI Goal
priorityIntegermin 00
control_flagsList of text[]

Used by

No vanilla entity file in the official samples uses this component. It is still part of the schema, so add-ons can use it.

Related components