minecraft:behavior.swim_wander

Allows the entity to wander around while swimming, when not path-finding.

Properties

PropertyTypeDefaultWhat it does
intervalDecimal0.0083Percent chance to start wandering, when not path-finding. 1 = 100%
look_aheadDecimal5Distance to look ahead for obstacle avoidance, while wandering.
speed_multiplierDecimal1This multiplier modifies the entity's speed when wandering.
wander_timeDecimal5Amount of time (in seconds) to wander after wandering behavior was successfully started.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

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

{
  "minecraft:behavior.swim_wander": {
    "priority": 7,
    "interval": 10,
    "look_ahead": 2.0,
    "speed_multiplier": 1.5,
    "wander_time": 5.0
  }
}

Used by 6

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

Related components