minecraft:behavior.swim_idle

Allows the entity go idle, if swimming. Entity must be in water.

Properties

PropertyTypeDefaultWhat it does
idle_timeDecimal5Amount of time (in seconds) to stay idle.
success_rateDecimal0.1Percent chance this entity will go idle, 1.0 = 100%.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

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

{
  "minecraft:behavior.swim_idle": {
    "priority": 7,
    "idle_time": 5.0,
    "success_rate": 0.05
  }
}

Used by 6

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

Related components