Item item/inspect

Item Inspect

Reads properties from an ItemStack — material, display name, lore, amount, damage, and more.

Note: All outputs are read-only — the original ItemStack is not modified. Use Item Modify to change properties.

Inputs

NameTypeOptionalDescription
item item_stack The ItemStack to inspect.

Outputs

NameTypeDescription
material string Namespaced material key (e.g. minecraft:diamond).
displayName string Custom display name (empty string if not set).
lore list List of lore lines (empty list if none).
amount number Stack size.
damage number Current durability damage taken (0 = undamaged).
maxDurability number Maximum durability of the item type (0 for indestructible).
customModelData number Custom model data value (-1 if not set).
isUnbreakable boolean True if the item has the unbreakable flag set.
isAir boolean True if the item is AIR or an empty slot.

Examples

Check the held item material

Inspect what material a player is holding.

  1. Held Item (GET) → item → Item Inspect
  2. Item Inspect → material → Compare (== minecraft:diamond_sword)