跳转至

Swim Up For Breath

文档版本:1.21.50.25

Allows the mob to try to move to air once it is close to running out of its total breathable supply.

架构

swim_up_for_breath:
{
  priority "priority"
  string "material_type" : opt
  integer "search_height" : opt
  integer "search_radius" : opt
  number "speed_mod" : opt
}
prioritypriority
priority:
integer
material_typestring
The material the mob is traveling in. An air block will only be considered valid to move to with a block of this material below it.
search_heightinteger
The height (in blocks) above the mob's current position that it will search for a valid air block to move to. If a valid block cannot be found, the mob will move to the position this many blocks above it.
search_radiusinteger
The radius (in blocks) around the mob's current position that it will search for a valid air block to move to.
speed_modnumber
Movement speed multiplier of the mob when using this Goal.