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
  • #254

Closed
Open
Created Jan 06, 2021 by morose@xmorose

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

https://pastebin.com/rwLeEafB

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.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking