Class EntityAgeableComponentBeta

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

Constructors

Properties

duration: number

Remarks

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

Throws

This property can throw when used.

growUp: Trigger

Remarks

Event to run when this entity grows up.

Throws

This property can throw when used.

typeId: string
componentId: "minecraft:ageable" = 'minecraft:ageable'

Remarks

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

Methods

  • Returns string[]

    Remarks

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

    This function can't be called in read-only mode.

    Throws

    This function can throw errors.

  • Returns EntityDefinitionFeedItem[]

    Remarks

    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't be called in read-only mode.

    Throws

    This function can throw errors.