minecraft:behavior.follow_target_leader
Allows mob to move towards its target leader.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
within_radius | Decimal | 0 | Defines the maximum distance in blocks a mob can get from its target leader before giving up trying to follow it. |
follow_distance | Decimal | 0 | Defines the distance in blocks the mob will stay from its target while following. |
always_look_for_leader | Boolean | false | If true, the mob will always search for a valid leader to follow if none is found or current leader is not valid anymore |
leader_filters | Object 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. |
test | Text | — | The name of the test to apply. |
subject | Boolean or Integer or Decimal or Text | — | The subject of this filter test. |
operator | Boolean or Integer or Decimal or Text | — | The comparison to apply with 'value'. |
domain | Boolean or Integer or Decimal or Text | — | The domain the test should be performed in. |
value | Boolean or Integer or Decimal or Text | — | The value being compared with the test. |
search_cooldown | Integer | 20 | Number of ticks that must pass before a new search is initiated after a target is not found, lost, or becomes invalid. |
speed_multiplier | Decimal | 1 | Movement speed multiplier of the mob when using this AI Goal |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.hurt_by_targetbehavior.follow_target_captainbehavior.defend_trusted_targetbehavior.defend_village_targetbehavior.jump_around_targetbehavior.look_at_targetbehavior.move_around_targetbehavior.move_towards_targetbehavior.owner_hurt_by_targetbehavior.owner_hurt_targetbehavior.stalk_and_pounce_on_targetbehavior.target_when_pushedbehavior.wither_target_highest_damagebehavior.vex_copy_owner_target