minecraft:behavior.mount_pathing for you with a switch.Get GodCraftOverview
minecraft:behavior.mount_pathing is an entity component: it goes in the components object of a custom mob, or in one of its component groups. AI goal that lets a mob carrying a rider keep moving on its own toward a target to attack, like the spider in a spider jockey.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
speed_multiplier | number | 1 | Speed multiplier while moving. |
target_dist | number | 0 | How far the mob wants to stay from its target. |
track_target | boolean | false | If true, the mob keeps chasing the target while it is still valid. |
priority | integer | 0 | Lower numbers run first: when two goals compete, the one with the smaller priority wins.Range: 0 to … |
control_flags | Goal's control flags[] | none | Which body parts this goal takes over (move, look, jump), so goals using the same parts cannot run together. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:behavior.mount_pathing": {
"speed_multiplier": 1,
"target_dist": 0,
"track_target": false,
"priority": 0,
"control_flags": []
}
}