Replies: 2 comments
|
Somewhat related to #8751, idk if we need both issues open. |
0 replies
|
I think they can both remain open as they are asking for different things, but like the other issue, this would require a rather large refactor of how itemstack's are damaged, as currently that info isn't available where the event is called. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem?
PlayerItemDamageEvent should have some of
getCausemethod.That way you could e.g. cancel axe damage for PvP, but not for mining.
Describe the solution you'd like.
The solution would be to just add an enum
ItemDamageCausewith the possible causes for item damage.Causes would be
ENTITY,BLOCK,CUSTOM,PLUGIN,UNKNOWN.Describe alternatives you've considered.
You can achieve something similar using
EntityDamageByEntityEvent,BlockBreakEventand a map, but that seems hacky.Other
No response
All reactions