Beta
Beta
amountReadonly
Beta
isBeta
keepBeta
lockReadonly
Beta
maxOptional
Beta
nameReadonly
Beta
typeReadonly
Beta
typeBeta
Returns 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.
Beta
Optional
blockIdentifiers: 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.
Beta
Optional
blockIdentifiers: 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.
Represents a slot within a broader container (e.g., entity inventory.)
Example: getMainhandSlotFromEquippble.js
Example: getMainhandSlotFromInventory.js