Item Attributes

alwaysEdible

This attribute defines whether the food item can be used if the hunger bar is full.

Examples

// Default value
// The item can also be used when the hunger bar is full.
alwaysEdible = true;

// The item can only be used when the hunger bar isn't full.
alwaysEdible = false;