Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Allows a mob to randomly fly around.
Entity Random Fly Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| avoid_damage_blocks | not set | Boolean true/false | If true, the mob will avoid blocks that cause damage when flying. | Parrot: true |
| can_land_on_trees | true | Boolean true/false | If true, the mob can stop flying and land on a tree instead of the ground | Parrot: true |
| 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. | Parrot: 3 |
| speed_multiplier | 1 | Decimal number | Movement speed multiplier of the mob when using this AI Goal | Parrot: 1 |
| xz_dist | 10 | Integer number | Distance in blocks on ground that the mob will look for a new spot to move to. Must be at least 1 | Parrot: 15 |
| y_dist | 7 | Integer number | Distance in blocks that the mob will look up or down for a new spot to move to. Must be at least 1 | Parrot: 1 |
| y_offset | not set | Decimal number |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Samples
Parrot
"minecraft:behavior.random_fly": {
"priority": 3,
"avoid_damage_blocks": true,
"can_land_on_trees": true,
"y_offset": 0,
"speed_multiplier": 1,
"xz_dist": 15,
"y_dist": 1
}