跳转至

Move To Liquid

文档版本:1.21.0.24

Allows the mob to move into a liquid when on land.

架构

move_to_liquid:
{
  priority "priority"
  speed_multiplier "speed_multiplier"
  number "goal_radius" : opt
  integer "search_count" : opt
  integer "search_height" : opt
  integer "search_range" : opt
  string "material_type" : opt
}
prioritypriority
priority:
integer
speed_multiplierspeed_multiplier
speed_multiplier:
number
goal_radiusnumber
Distance in blocks within the mob considers it has reached the goal. This is the wiggle room to stop the AI from bouncing back and forth trying to reach a specific spot
search_countinteger
The number of blocks each tick that the mob will check within it's search range and height for a valid block to move to. A value of 0 will have the mob check every block within range in one tick
search_heightinteger
Height in blocks the mob will look for lava to move towards.
search_rangeinteger
The distance in blocks it will look for lava to move towards.
material_typestring
The material type of the liquid block to find. Valid values are 'Any', 'Water', and 'Lava'.