minecraft:behavior.rise_to_liquid_level

Allows the mob to stay at a certain level when in liquid.

Properties

PropertyTypeDefaultWhat it does
liquid_y_offsetDecimal0Target distance down from the liquid surface. i.e. Positive values move the target Y down.
rise_deltaDecimal0Movement up in Y per tick when below the liquid surface.
sink_deltaDecimal0Movement down in Y per tick when above the liquid surface.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Strider uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.rise_to_liquid_level": {
    "priority": 0,
    "liquid_y_offset": 0.25,
    "rise_delta": 0.01,
    "sink_delta": 0.01
  }
}

Used by 1

Vanilla entities with minecraft:behavior.rise_to_liquid_level in their definition:

Related components