Allows the mob to follow other mobs.
Follow Mob Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| filters | not set | Minecraft filter | If non-empty, provides criteria for filtering which nearby Mobs can be followed. | |
| preferred_actor_type | not set | String | The type of actor to prefer following. If left unspecified, a random actor among those in range will be chosen. | |
| 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. | Parrot: 4 |
| search_range | 0 | Integer number | The distance in blocks it will look for a mob to follow | Parrot: 20 |
| speed_multiplier | 1 | Decimal number | Movement speed multiplier of the mob when using this AI Goal | Parrot: 1 |
| stop_distance | 2 | Decimal number | The distance in blocks this mob stops from the mob it is following | Parrot: 3 |
| use_home_position_restriction | true | Boolean true/false | If true, the mob will respect the 'minecraft:home' component's 'restriction_radius' field when choosing a target to follow. |
filters
If non-empty, provides criteria for filtering which nearby Mobs can be followed. If empty default criteria will be used, which will exclude Players, Squid variants, Fish variants, Tadpoles, Dolphins, and mobs of the same type as the owner of the Goal.
use_home_position_restriction
If true, the mob will respect the 'minecraft:home' component's 'restriction_radius' field when choosing a target to follow. If false, it will choose target position without considering home restrictions.
Samples
Parrot
"minecraft:behavior.follow_mob": {
"priority": 4,
"search_range": 20,
"speed_multiplier": 1,
"stop_distance": 3
}