Random Swim¶
文档版本:1.21.50.25
Allows an entity to randomly move through water.
架构¶
random_swim:
{
priority "priority"
speed_multiplier "speed_multiplier"
boolean "avoid_surface" : opt
integer "interval" : opt
integer "xz_dist" : opt
integer "y_dist" : opt
}
priority
:priority
speed_multiplier
:speed_multiplier
avoid_surface
:boolean- If true, the mob will avoid surface water blocks by swimming below them.
interval
:integer- A random value to determine when to randomly move somewhere. This has a 1/interval chance to choose this goal
xz_dist
:integer- Distance in blocks on ground that the mob will look for a new spot to move to. Must be at least 1
y_dist
:integer- Distance in blocks that the mob will look up or down for a new spot to move to. Must be at least 1