@minecraft
    正在准备搜索索引...

    类 EntityAgeableComponent

    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.

    层级 (查看层级一览)

    索引

    属性

    duration: number

    Amount of time before the entity grows up, -1 for always a baby.

    This property can throw when used.

    entity: Entity

    The entity that owns this component. The entity will be undefined if it has been removed.

    This property can throw when used.

    InvalidEntityError

    growUp: Trigger

    Event that runs when this entity grows up.

    This property can throw when used.

    isValid: boolean

    Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.

    transformToItem: string

    The feed item used will transform into this item upon successful interaction.

    This property can throw when used.

    typeId: string

    Identifier of the component.

    componentId: "minecraft:ageable" = 'minecraft:ageable'

    方法

    • 返回 string[]

      List of items that the entity drops when it grows up.

      This function can throw errors.