Allows the mob to follow their parent around.
Note
Requires the following component in order to work properly:
- Is Baby (minecraft:is_baby)
Requires the
minecraft:is_babycomponent in order to have an adult mob tagged as a parent for the entity.
Entity Follow Parent Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| control_flags | [] | Control Flags choices | ||
| priority | 0 | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. | Chicken: 5, Dolphin: 4, Goat: 6 |
| speed_multiplier | 1 | Decimal number | Movement speed multiplier of the mob when using this AI Goal | Chicken: 1.1, Goat: 1 |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Samples
Chicken
"minecraft:behavior.follow_parent": {
"priority": 5,
"speed_multiplier": 1.1
}
Dolphin
"minecraft:behavior.follow_parent": {
"priority": 4,
"speed_multiplier": 1.1
}
Goat
"minecraft:behavior.follow_parent": {
"priority": 6,
"speed_multiplier": 1
}
Llama
"minecraft:behavior.follow_parent": {
"priority": 5,
"speed_multiplier": 1
}
Pig
"minecraft:behavior.follow_parent": {
"priority": 6,
"speed_multiplier": 1.1
}