Healable¶
文档版本:1.21.50.25
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
{
effect "name"
integer "duration" : opt
integer "amplifier" : opt
}
array "effects" : opt
{
object "<any array element>" : opt
{
}
}
}
}
}
filters
:filters- 一个过滤器组。
force_use
:boolean- Determines if item can be used regardless of entity being at full health.
items
:array- The array of items that can be used to heal this entity.
items
<any array element>
:object
<any array element>
filters
:filters- 一个过滤器组。The filter group that defines the conditions for using this item to heal the entity.
heal_amount
:integer- The amount of health this entity gains when fed this item.
item
:descriptor- Item that can be used to heal this entity.
item
:identifier
item
:object- An object that describes an item.
item
tags
:0- [UNDOCUMENTED] A Molang expression ran against item or block to match.
item_tag
:string- [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
}
}
effects
:object
effects
name
:effect- Effect name.
duration
:integer- The duration of the effect.
amplifier
:integer- The amplifier of the effect.
effects
:array
effects
<any array element>
:object
<any array element>