%i:ITEMSTACK% (has|does not have|has no) lore
Checks if an item stack has or does not have lore set.
if item has lore:
if item does not have lore:
Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.
<i> has lore
<i> does not have lore
<i> has no lore
%i:ITEMSTACK% (has|does not have|has no) (display name|name)
%i:ITEMSTACK% (has|does not have|has no) enchantments
%i:ITEMSTACK% (is|is not) unbreakable
%i:ITEMSTACK% has pdc %key:STRING%
%i:ITEMSTACK% (does not have|has no) pdc %key:STRING%