minecraft:behavior.rise_to_liquid_level
Allows the mob to stay at a certain level when in liquid.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
liquid_y_offset | Decimal | 0 | Target distance down from the liquid surface. i.e. Positive values move the target Y down. |
rise_delta | Decimal | 0 | Movement up in Y per tick when below the liquid surface. |
sink_delta | Decimal | 0 | Movement down in Y per tick when above the liquid surface. |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.random_strollbehavior.random_look_aroundbehavior.equip_itembehavior.move_towards_home_restrictionbehavior.timer_flag_1behavior.look_at_entitybehavior.move_towards_dwelling_restrictionbehavior.drink_potionbehavior.jump_to_blockbehavior.squid_divebehavior.squid_idlebehavior.squid_move_away_from_groundbehavior.squid_out_of_waterbehavior.croakbehavior.dragondeathbehavior.drink_milkbehavior.emergebehavior.investigate_suspicious_locationbehavior.lay_downbehavior.napbehavior.rollbehavior.silverfish_merge_with_stonebehavior.silverfish_wake_up_friendsbehavior.sleep