Type Alias: ItemStackDataInput
ItemStackDataInput =
object
Mapping form accepted by ItemStack.fromData.
Properties
amount
amount:
number
Number of items in the stack.
canDestroy
canDestroy: readonly
string[]
Adventure-mode block predicates stored in CanDestroy.
canPlaceOn
canPlaceOn: readonly
string[]
Adventure-mode block predicates stored in CanPlaceOn.
damage
damage:
number
Durability damage to restore.
data
data:
Readonly<Record<string,boolean|number|string|Vector3|Vector3Mapping>>
QuestScript data to store on the stack.
enchantments
enchantments:
Readonly<Record<string,number>>
Enchantment levels keyed by namespaced enchantment identifier.
lore
lore: readonly
string[]
Lore lines in display order.
nameTag
nameTag:
string
Effective display name to restore.
tags
tags: readonly
string[]
Sorted Minecraft item tags that must match typeId.
typeId
typeId:
string
Namespaced item type identifier.