minecraft:behavior.swim_wander
Allows the entity to wander around while swimming, when not path-finding.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
interval | Decimal | 0.0083 | Percent chance to start wandering, when not path-finding. 1 = 100% |
look_ahead | Decimal | 5 | Distance to look ahead for obstacle avoidance, while wandering. |
speed_multiplier | Decimal | 1 | This multiplier modifies the entity's speed when wandering. |
wander_time | Decimal | 5 | Amount of time (in seconds) to wander after wandering behavior was successfully started. |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.floatbehavior.random_swimbehavior.swim_idlebehavior.use_kinetic_weaponbehavior.move_to_waterbehavior.teleport_to_ownerbehavior.float_wanderbehavior.go_homebehavior.random_hoverbehavior.slime_floatbehavior.slime_keep_on_jumpingbehavior.slime_random_directionbehavior.move_to_landbehavior.move_to_random_blockbehavior.circle_around_anchorbehavior.dragonholdingpatternbehavior.dragonlandingbehavior.dragontakeoffbehavior.explore_outskirtsbehavior.find_underwater_treasurebehavior.move_to_blockbehavior.move_to_liquidbehavior.random_breachbehavior.random_fly