Allows the mob to float around like the Ghast.
Entity Float Wander Behavior Properties
| Name |
Default Value |
Type |
Description |
Example Values |
| additional_collision_buffer |
false |
Boolean true/false |
If true, the mob will have an additional buffer zone around it to avoid collisions with blocks when picking a position to wander to. |
|
| allow_navigating_through_liquids |
false |
Boolean true/false |
If true allows the mob to navigate through liquids on its way to the target position. |
|
| control_flags |
[] |
Control Flags choices |
|
|
| float_duration (Legacy FloatRange) |
{"max":0,"min":0} |
Float Duration item |
Range of time in seconds the mob will float around before landing and choosing to do something else |
Bat: [0.1,0.35] |
| float_duration (as Decimal number) |
not set |
Decimal number |
|
|
| float_wander_has_move_control |
true |
Boolean true/false |
If true, the MoveControl flag will be added to the behavior which means that it can no longer be active at the same time as other behaviors with MoveControl. |
|
| must_reach |
false |
Boolean true/false |
If true, the point has to be reachable to be a valid target |
|
| navigate_around_surface |
false |
Boolean true/false |
If true, will prioritize finding random positions in the vicinity of surfaces, i.e. blocks that are not Air or Liquid. |
|
| 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. |
|
| random_reselect |
false |
Boolean true/false |
If true, the mob will randomly pick a new point while moving to the previously selected one |
Bat: true |
| surface_xz_dist |
8 |
Integer number |
The horizontal distance in blocks that the goal will check for a surface from a candidate position. Only valid when navigate_around_surface is true. |
|
| surface_y_dist |
8 |
Integer number |
The vertical distance in blocks that the goal will check for a surface from a candidate position. Only valid when navigate_around_surface is true. |
|
| use_home_position_restriction |
true |
Boolean true/false |
If true, the mob will respect home position restrictions when choosing new target positions. If false, it will choose target position without considering home restrictions |
|
| 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 |
Bat: 10 |
| 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 |
Bat: 7 |
| y_offset |
0 |
Decimal number |
Height in blocks to add to the selected target position |
Bat: -2 |
Control Flags choices
| Value |
Title |
Description |
| jump |
Jump |
|
| look |
Look |
|
| move |
Move |
|
Legacy FloatRange
Legacy FloatRange Properties
JSON path: float_duration
| Name |
Default Value |
Type |
Description |
| max |
0 |
Decimal number |
|
| min |
0 |
Decimal number |
|
Samples
"minecraft:behavior.float_wander": {
"float_duration": [
0.1,
0.35
],
"float_wander_has_move_control": false,
"random_reselect": true,
"y_offset": -2,
"use_home_position_restriction": false,
"xz_dist": 10,
"y_dist": 7
}