BetaProtectedconstructorBetaBetaamountNumber 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.
This property can't be edited in read-only mode.
Readonly BetaisReadonly BetaisBetakeepGets or sets whether the item is kept on death.
This property can't be edited in read-only mode.
BetalockGets or sets the item's lock mode. The default value is
ItemLockMode.none.
This property can't be edited in read-only mode.
Readonly BetamaxOptional 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.
This property can't be edited in read-only mode.
Readonly BetatypeOptional Readonly BetatypeBetaCreates an exact copy of the item stack, including any custom data or properties.
This function can't be called in read-only mode.
BetaAn array of lore strings. If the item does not have lore, returns an empty array.
Returns the lore value - a secondary display string - for an ItemStack.
This function can't be called in read-only mode.
BetaReturns whether this item stack can be stacked with the
given itemStack. This is determined by comparing the item
type and any custom data and properties associated with the
item stacks. The amount of each item stack is not taken into
consideration.
This function can't be called in read-only mode.
BetaOptionalblockIdentifiers: string[]The list of block types this item can break in Adventure mode. The block names are displayed in the item's tooltip. Setting the value to undefined will clear the list.
This function can't be called in read-only mode.
BetaOptionalblockIdentifiers: string[]The list of block types this item can be placed on in Adventure mode. This is only applicable to block items. The block names are displayed in the item's tooltip. Setting the value to undefined will clear the list.
This function can't be called in read-only mode.
BetaOptionalitemStack: ItemStackThis function can't be called in read-only mode.
BetaOptionalloreList: string[]Sets the lore value - a secondary display string - for an ItemStack.
This function can't be called in read-only mode.
Represents a slot within a broader container (e.g., entity inventory.)