New attributes for HasItem condition and TakeItem skill mechanic
1. name #checks if the item contains specified contents in their name.
2. lore #checks if the item contains specified contents in their lore.
3. skulltexture #checks the player head's texture.
4. skullowner #checks the player head's owner.
5. durability #checks if the item's remaining durability is in a specified range. Checks the custom durability if its an MMOItem.
6. nbt #checks if the item contains an specified NBT tag.
7. nbtvalue #checks if the value of the item's specific NBT tag is corresponding. Works with nbt attribute together.
All of these attributes checks the items that have been specified by "item" attribute.
The usage of these new attributes:
They can detect "unwanted items" in players' inventories (or in containers) more precisely, and be helpful for us to handle them. For myself, I use MMOItems to make custom player heads but whenever players put the heads onto a block and break them, most of their NBT tags are destroyed and the dropped heads are no longer MI registered items, becoming "unwanted items" just as I described. If these new attributes can be added, then I can easily check these unwanted heads through skulltexture or skullowner attribute (based on the head texture) and turns them into correct MI registered heads again.