Drink Potion¶
文档版本:1.21.50.25
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"
}
}
}
priority:priority
speed_multiplier:speed_multiplier
speed_modifier- Movement speed modifier of the mob when using this AI Goal.
potions:array- A list of potions that this entity can drink.
potions<any array element>:object- A potions that this entity can drink.
<any array element>id:integer- The registry ID of the potion to use.
chance:number- The percent chance (from 0.0 to 1.0) of this potion being selected when searching for a potion to use.
filters:filters- 一个过滤器组。The filters to use when determining if this potion can be selected.