Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #909

Closed
Open
Created Aug 24, 2022 by l rz@Raenzil

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.

Edited Aug 24, 2022 by l rz
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking