Перейти к основному содержанию

Item.FoodParams

Object used in Item.createFoodItem method to specify general food item parameters.

Hierarchy

Index

Properties

optionalcategory
since: 2.2.0b76

category?: number

optionalfood

food?: number = 1 // 0.5 hunger unit

Amount of hunger restored by this food in halfs.

optionalisTech

isTech?: boolean = false

If true, the item will not be added to creative.

optionalstack

stack?: number = 64

Maximum item in stack size.