minecraft:behavior.swim_idle
Allows the entity go idle, if swimming. Entity must be in water.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
idle_time | Decimal | 5 | Amount of time (in seconds) to stay idle. |
success_rate | Decimal | 0.1 | Percent chance this entity will go idle, 1.0 = 100%. |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.floatbehavior.random_swimbehavior.swim_wanderbehavior.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