Entity Documentation - minecraft:behavior.swim_idle

minecraft:behavior.swim_idle compels an entity swimming in water to go idle.

Parameters

Name Default Value Type Description
idle_time 5 Decimal Amount of time (in seconds) to stay idle.
priority not set Integer The higher the priority, the sooner this behavior will be executed as a goal.
success_rate 0.1 Decimal Percent chance this entity will go idle, 1.0 = 100%.

Example

"minecraft:behavior.swim_idle": {
    "priority": 5,
    "idle_time": 5.0,
    "success_rate": 0.1
}

Vanilla entities examples

fish

"minecraft:behavior.swim_idle": {
    "priority": 5,
    "idle_time": 5.0,
    "success_rate": 0.1
}

Vanilla entities using minecraft:behavior.swim_idle