Script API - v1.20.0
    Preparing search index...

    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.

    Hierarchy (View Summary)

    Index

    Properties

    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.

    growUp: Trigger

    Event to run when this entity grows up.

    This property can throw when used.

    typeId: string

    Identifier of the component.

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

    Identifier of this component. Should always be minecraft:ageable.

    Methods

    • Beta

      Returns string[]

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

      This function can throw errors.

    • Beta

      Returns EntityDefinitionFeedItem[]

      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.

      This function can throw errors.