Item

Members


count

integer

The quantity of items in this stack

location

integer

This is used when referencing an item to client functions. Do not modify or guess its value.

id

integer

The runtime numerical identifier of the item. This value changes often and should be used for runtime only.

blockid

integer

The runtime numerical identifier of the block associated with the item. This value changes often and should be used for runtime only.

name

string

The name of the item, e.g., "diamond_sword"

blockname

string

The name of the block associated with the item, e.g., "carrots"

blockstate

table

The state of the block associated with the item

maxStackCount

integer

The maximum quantity of this item that can be stacked

maxDamage

integer

The maximum durability of an item

durability

integer

The current durability of the item

data

integer

The data of the item, similar to the /give command with dye and other items

customName

string

The custom name of the item, e.g., from anvils

enchant

Enchants

The item's enchantments

displayName

string

The item's display name (the one that would show above the hotbar)

creativeCategory

integer

The creative category of the item (0=all,1=construction,2=nature,3=equipment,4=items,5=itemscommandonly,6=undefined)

lore

string

The lore of the item (or its description)