Triggercondition Wearing (item) not recognizing damaged/enchanted items
Closed
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.
- Startup logs
I can only partially reproduce this issue. If you have the material of the wearing condition as a vanilla item, it does not work when the item is damaged or enchanted like morose said; however, if you have the material of the wearing condition as a mythic item it works in all situations for me. Newest dev build, 1.16.4 minecraft.
Edited by Akim91added Verified Issue label
I mark it as verified because from the wiki page - https://www.mythicmobs.net/manual/doku.php/conditions/wearing - it says that it should work for both.
Edited by Akim91This video shows it working with a mythic item undamaged, damaged, and enchanted.
TestMob1: Type: WITCH Display: 'Spookyness' Options.MovementSpeed: 0.01 AIGoalSelectors: - 0 clear AITargetSelectors: - 0 clear Skills: - skill{s=CheckWearingConditionHoe} @trigger ~onInteract CheckWearingConditionHoe: TriggerConditions: - wearing{m=HoeTest;slot=HAND} true Skills: - message{msg="im wearing the hoetest item"} @trigger HoeTest: Id: DIAMOND_HOE Data: 0 Display: 'Wearing' Lore: - 'Condition Check' Enchantments: - DAMAGE_ALL:4```
Edited by Akim91