Ageable¶
文档版本:1.21.50.25
Adds a timer for the entity to grow up. It can be accelerated by giving the entity the items it likes as defined by feedItems.
架构¶
ageable:
{
array "drop_items" : opt
{
descriptor "<any array element>"
}
descriptor "drop_items"
number "duration" : opt
array "feed_items" : opt
{
identifier "<any array element>"
object "<any array element>" : opt
{
number "growth" : opt
descriptor "item"
}
}
identifier "feed_items"
event_object "grow_up"
descriptor "transform_to_item"
filters "interact_filters"
}
drop_items
:array- List of items that the entity drops when it grows up.
drop_items
<any array element>
:descriptor
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.
drop_items
:descriptor- List of items that the entity drops when it grows up.
duration
:number- Amount of time before the entity grows up, -1 for always a baby.
feed_items
:array- List of items that can be fed to the entity. Includes
item
for the item name andgrowth
to define how much time it grows up by
feed_items
<any array element>
:identifier
<any array element>
:object
<any array element>
growth
:number
item
:descriptor
feed_items
:identifier- List of items that can be fed to the entity. Includes
item
for the item name andgrowth
to define how much time it grows up by
grow_up
:event_object- Event to run when this entity grows up.
transform_to_item
:descriptor- The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue
interact_filters
:filters- 一个过滤器组。List of conditions to meet so that the entity can be fed.