跳转至

Healable

文档版本:1.21.0.24

Defines the interactions with this entity for healing it.

架构

healable:
{
  filters "filters"
  boolean "force_use" : opt
  array "items" : opt
  {
    object "<any array element>" : opt
    {
      filters "filters"
      integer "heal_amount" : opt
      descriptor "item"
      object "effects" : opt
      {
        string "name" : opt
        integer "duration" : opt
        integer "amplifier" : opt
      }
      array "effects" : opt
      {
        object "<any array element>" : opt
        {
        }
      }
    }
  }
}
filtersfilters
一个过滤器组
force_useboolean
Determines if item can be used regardless of entity being at full health.
itemsarray
The array of items that can be used to heal this entity.
items
<any array element>object
<any array element>
filtersfilters
一个过滤器组。The filter group that defines the conditions for using this item to heal the entity.
heal_amountinteger
The amount of health this entity gains when fed this item.
itemdescriptor
Item that can be used to heal this entity.
identifier:
string
descriptor:
{
  identifier "item"
  object "item" : opt
  {
  }
  0 "tags"
  string "item_tag" : opt
}
itemidentifier
itemobject
An object that describes an item.
item
tags0
[UNDOCUMENTED] A Molang expression ran against item or block to match.
0:
string
item_tagstring
[UNDOCUMENTED] A tag to lookup item or block by.
descriptor:
{
  identifier "item"
  object "item" : opt
  {
    identifier "item"
    object "item" : opt
    {
    }
    0 "tags"
    string "item_tag" : opt
  }
}
itemidentifier
itemobject
An object that describes an item.
item
effectsobject
effects
namestring
UNDOCUMENTED.
durationinteger
The duration of the effect.
amplifierinteger
The amplifier of the effect.
effectsarray
effects
<any array element>object
<any array element>