跳转至

Drink Potion

文档版本:1.21.0.24

Allows the mob to drink potions based on specified environment conditions.

架构

drink_potion:
{
  priority "priority"
  speed_multiplier "speed_multiplier"
   "speed_modifier" : opt
  array "potions" : opt
  {
    object "<any array element>" : opt
    {
      integer "id" : opt
      number "chance" : opt
      filters "filters"
    }
  }
}
prioritypriority
priority:
integer
speed_multiplierspeed_multiplier
speed_multiplier:
number
speed_modifier
Movement speed modifier of the mob when using this AI Goal.
potionsarray
A list of potions that this entity can drink.
potions
<any array element>object
A potions that this entity can drink.
<any array element>
idinteger
The registry ID of the potion to use.
chancenumber
The percent chance (from 0.0 to 1.0) of this potion being selected when searching for a potion to use.
filtersfilters
一个过滤器组。The filters to use when determining if this potion can be selected.