跳转至

Ageable

文档版本:1.21.0.24

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_itemsarray
List of items that the entity drops when it grows up.
drop_items
<any array element>descriptor
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
drop_itemsdescriptor
List of items that the entity drops when it grows up.
durationnumber
Amount of time before the entity grows up, -1 for always a baby.
feed_itemsarray
List of items that can be fed to the entity. Includes item for the item name and growth to define how much time it grows up by
feed_items
<any array element>identifier
<any array element>object
<any array element>
growthnumber
itemdescriptor
feed_itemsidentifier
List of items that can be fed to the entity. Includes item for the item name and growth to define how much time it grows up by
grow_upevent_object
Event to run when this entity grows up.
event_object:
{
  filters "filters"
  string "event" : opt
  string "target" : opt
}
filtersfilters
一个过滤器组
eventstring
The event to fire.
targetstring
The target of the event.
transform_to_itemdescriptor
The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue
interact_filtersfilters
一个过滤器组。List of conditions to meet so that the entity can be fed.