minecraft:behavior.find_mount for you with a switch.Get GodCraftOverview
minecraft:behavior.find_mount is an entity component: it goes in the components object of a custom mob, or in one of its component groups. AI goal that makes the mob look for another mob to climb on and ride, like a baby zombie hunting for a chicken.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
within_radius | number | 0 | How far, in blocks, the mob looks for something to ride. |
start_delay | integer | 0 | How long the mob waits before heading to the mount. |
avoid_water | boolean | false | If true, the mob stays out of water on its way to the mount. |
target_needed | boolean | false | If true, the mob only looks for a mount while it has a target. |
mount_distance | number | -1 | How close the mob must be to climb on. Below 0 uses its attack distance. |
max_failed_attempts | integer | 20 | How many times the mob may fail to find a mount before giving up. |
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.find_mount": {
"within_radius": 0,
"start_delay": 0,
"avoid_water": false,
"target_needed": false,
"mount_distance": -1,
"max_failed_attempts": 20,
"priority": 0,
"control_flags": []
}
}