BetaBetaamountReadonly BetaisReadonly BetaisBetakeepBetalockReadonly BetamaxOptional BetanameReadonly BetatypeReadonly BetatypeBetaBetaBetaBetaThe property identifier.
Returns the value for the property, or undefined if the property has not been set.
BetaReturns the total size, in bytes, of all the dynamic properties that are currently stored for this entity. This includes the size of both the key and the value. This can be useful for diagnosing performance warning signs - if, for example, an entity has many megabytes of associated dynamic properties, it may be slow to load on various devices.
BetaReturns a copy of the item in the slot. Returns undefined if the slot is empty.
BetaAn array of lore strings. If the item does not have lore, returns an empty array.
BetaReturns all tags for the item in the slot. Return an empty array if the the slot is empty.
BetaBetaThe item tag.
Returns false when the slot is empty or the item in the slot does not have the given tag.
BetaThe ItemStack that is being compared.
Returns whether this item stack can be stacked with the
given itemStack.
BetaOptionalblockIdentifiers: string[]The list of blocks, given by their identifiers.
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 blocks, given by their identifiers.
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.
BetaA Record of key value pairs of the dynamic properties to set.
BetaThe property identifier.
Optionalvalue: string | number | boolean | Vector3Data value of the property to set.
BetaOptionalitemStack: ItemStackThe ItemStack to be placed in the slot.
Represents a slot within a broader container (e.g., entity inventory.)