Entity Documentation - minecraft:behavior.random_hover

minecraft:behavior.random_hover compels the entity to hover around randomly, close to the surface.

Parameters

Name Default Value Type Description
hover_height [0.0, 0.0] Range [a, b] The height above the surface which the entity will try to maintain.
interval 120 Integer A random value to determine when to randomly move somewhere. This has a 1/interval chance to choose this goal.
priority not set Integer The higher the priority, the sooner this behavior will be executed as a goal.
speed_multiplier 1.0 Decimal Movement speed multiplier of the entity when using this AI Goal.
xz_dist 10 Integer Distance in blocks on ground that the entity will look for a new spot to move to. Must be at least 1.
y_dist 7 Integer Distance in blocks that the entity will look up or down for a new spot to move to. Must be at least 1.
y_offset 0.0 Decimal Height in blocks to add to the selected target position.

Example

"minecraft:behavior.random_hover":{
    "xz_dist": 10,
    "y_dist": 7,
    "y_offset": -2.0,
    "hover_height": [ 1, 3 ]
}

Vanilla entities examples

bee

"minecraft:behavior.random_hover": {
    "priority": 12,
    "xz_dist": 8,
    "y_dist": 8,
    "y_offset": -1,
    "interval": 1,
    "hover_height": [1, 4]
}

Vanilla entities using minecraft:behavior.random_hover