TypedDict: ItemStackDataInput
Typed mapping form accepted by ItemStack.from_data.
class ItemStackDataInput(TypedDict)
Related API: Vector3, Vector3Mapping
Properties
type_id
type_id: str
Namespaced item type identifier.
amount
amount: int
Number of items in the stack.
name_tag
name_tag: str
Effective display name to restore.
lore
lore: Sequence[str]
Lore lines in display order.
data
data: Mapping[str, Union[bool, float, str, Vector3, Vector3Mapping]]
QuestScript data to store on the stack.
Related API: Vector3, Vector3Mapping
damage
damage: int
Durability damage to restore.
enchantments
enchantments: Mapping[str, int]
Enchantment levels keyed by namespaced enchantment identifier.
can_destroy
can_destroy: Sequence[str]
Adventure-mode block predicates stored in CanDestroy.
can_place_on
can_place_on: Sequence[str]
Adventure-mode block predicates stored in CanPlaceOn.
tags
tags: Sequence[str]
Sorted Minecraft item tags that must match type_id.