Skip to main content

Class: EntityDefinitionFeedItem

As part of the Ageable component, represents a set of items that can be fed to an entity and the rate at which that causes them to grow.

Constructors

new EntityDefinitionFeedItem()

private new EntityDefinitionFeedItem(): EntityDefinitionFeedItem

Returns

EntityDefinitionFeedItem

Properties

growth

readonly growth: number

Remarks

The amount by which an entity's age will increase when fed this item. Values usually range between 0 and 1.


item

readonly item: string

Remarks

Identifier of type of item that can be fed. If a namespace is not specified, 'minecraft:' is assumed. Example values include 'wheat' or 'golden_apple'.