minecraft:behavior.slime_float

Allow slimes to float in water / lava. Can only be used by Slime and Magma Cubes.

Properties

PropertyTypeDefaultWhat it does
jump_chance_percentageDecimal0.8Percent chance a slime or magma cube has to jump while in water / lava.
speed_multiplierDecimal1.2Determines the multiplier the entity's speed is modified by when moving through water / lava.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Sulfur Cube uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.slime_float": {
    "priority": 1,
    "jump_chance_percentage": 0.8,
    "speed_multiplier": 1.2
  }
}

Used by 3

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

Related components