get %i:ITEMSTACK_POSSESSIVE% type
Returns the material type name of an item stack.
set mat to get item's type
Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.
get <i> type
new item %mat:MATERIAL%
new item %mat:MATERIAL% %amt:INT%
get %i:ITEMSTACK_POSSESSIVE% (display name|name)
get %i:ITEMSTACK_POSSESSIVE% lore
get %i:ITEMSTACK_POSSESSIVE% amount
get %i:ITEMSTACK_POSSESSIVE% durability
get %i:ITEMSTACK_POSSESSIVE% max durability
get %i:ITEMSTACK_POSSESSIVE% custom model data
get pdc %key:STRING% of %i:ITEMSTACK%