BetaBetaType of item to create. See the MinecraftItemTypes enumeration for a list of standard item types in Minecraft experiences.
Optionalamount: numberNumber of items to place in the stack, between 1-255. The provided value will be clamped to the item's maximum stack size. Note that certain items can only have one item in the stack.
BetaamountNumber of the items in the stack. Valid values range between 1-255. The provided value will be clamped to the item's maximum stack size.
Readonly BetaisReturns whether the item is stackable. An item is considered stackable if the item's maximum stack size is greater than 1 and the item does not contain any custom data or properties.
BetakeepGets or sets whether the item is kept on death.
BetalockGets or sets the item's lock mode. The default value is
ItemLockMode.none.
Readonly BetamaxThe maximum stack size. This value varies depending on the type of item. For example, torches have a maximum stack size of 64, while eggs have a maximum stack size of 16.
Optional BetanameGiven name of this stack of items. The name tag is displayed
when hovering over the item. Setting the name tag to an
empty string or undefined will remove the name tag.
Readonly BetatypeThe type of the item.
Readonly BetatypeIdentifier of the type of items for the stack. If a namespace is not specified, 'minecraft:' is assumed. Examples include 'wheat' or 'apple'.
BetaBetaThe identifier of the component (e.g., 'minecraft:food') to retrieve. If no namespace prefix is specified, 'minecraft:' is assumed. If the component is not present on the item stack, undefined is returned.
BetaOptionalloreList: string[]
Defines a collection of items.