Triggercondition Wearing (item) not recognizing damaged/enchanted items
Summary
goldsworddamage:
TriggerConditions:
- entityType{type=PLAYER}
- wearing{m=golden_sword;s=HAND;} false
Skills:
- CancelEvent
Works, but doesnt listen to Damaged / Enchanted golden swords. They just dont pass the TriggerCondition even though they should.
Example video: https://gyazo.com/bf5ab6fcddf6c7a93ef021c8b197c51f
Steps to reproduce
Test the following out: https://pastebin.com/MhPgz3wG Put a Golden Sword in your hand, try to hit the mob in survival. You will be able to hit it ONCE (because its full durability and not enchanted) But not more.
Current behavior
Triggercondition for Goldensword in mainhand not going through when the item isnt completely "fresh"
Intended correct behavior
Well, the triggercondition is supposed to pass and still damage the mob even if the sword is damaged or enchanted :p
Debug log snippet
Proposed fixes
Yeah not sure, I mean its clear that the plugin is just isnt recognizing damaged/enchanted golden swords as a full-on golden sword, but im not sure why.