编辑

Entity Documentation - minecraft:behavior.swim_wander

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

Entity Swim Wander Behavior Properties

Name Default Value Type Description
control_flags [] Control Flags choices
interval 0.008329999633133411 Decimal number Percent chance to start wandering, when not path-finding. 1 = 100%
look_ahead 5 Decimal number Distance to look ahead for obstacle avoidance, while wandering.
priority 0 Integer number As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
speed_multiplier 1 Decimal number This multiplier modifies the entity's speed when wandering.
wander_time 5 Decimal number Amount of time (in seconds) to wander after wandering behavior was successfully started.

Control Flags choices

Value Title Description
jump Jump
look Look
move Move

Samples