Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
This documentation is for an older version of this module. Go to the latest documentation here.
As part of the Healable component, represents a specific item that can be fed to an entity to cause health effects.
Properties
healAmount
read-only healAmount: number;
The amount of health this entity gains when fed this item. This number is an integer starting at 0. Sample values can go as high as 40.
Type: number
item
read-only item: string;
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'.
Type: string
Methods
getEffects
getEffects(): FeedItemEffect[]
As part of the Healable component, an optional collection of side effects that can occur from being fed an item.
Returns FeedItemEffect[]