@minecraft/server / EntityDefinitionFeedItem
Class: EntityDefinitionFeedItem ​
Defined in: @minecraft/server/index.d.ts:10085
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.
Properties ​
growth ​
readonlygrowth:number
Defined in: @minecraft/server/index.d.ts:10093
Remarks ​
The amount by which an entity's age will increase when fed this item. Values usually range between 0 and 1.
item ​
readonlyitem:string
Defined in: @minecraft/server/index.d.ts:10101
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'.
resultItem? ​
readonlyoptionalresultItem?:string
Defined in: @minecraft/server/index.d.ts:10110
Remarks ​
Type ID of the resulting item after feeding has occurred. This will usually be empty but is used for scenarios such as feeding a Nautilus with a bucket of fish, where the result item will be an empty bucket.