minecraft:behavior.mount_pathing
Allows the mob to move around on its own while mounted seeking a target to attack.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
speed_multiplier | Decimal | 1 | Movement speed multiplier of the mob when using this AI Goal |
target_dist | Decimal | 0 | The distance at which this mob wants to be away from its target |
track_target | Boolean | false | If true, this mob will chase after the target as long as it's a valid target |
priority | Integermin 0 | 0 | |
control_flags | List of text | [] |
Example from the game files
This is how vanilla Cave Spider uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.mount_pathing": {
"priority": 5,
"target_dist": 0.0,
"speed_multiplier": 1.25,
"track_target": true
}
}Used by 26
Vanilla entities with minecraft:behavior.mount_pathing in their definition:
Related components
behavior.look_at_playerbehavior.temptbehavior.breedbehavior.follow_parentbehavior.player_ride_tamedbehavior.find_mountbehavior.celebratebehavior.follow_ownerbehavior.stay_while_sittingbehavior.look_at_trading_playerbehavior.random_look_around_and_sitbehavior.take_flowerbehavior.trade_with_playerbehavior.celebrate_survivebehavior.controlled_by_playerbehavior.follow_caravanbehavior.follow_mobbehavior.make_lovebehavior.ocelot_sit_on_blockbehavior.playbehavior.receive_lovebehavior.share_itemsbehavior.trade_interestbehavior.admire_item