GC-spigot / AdvancedEnchantments

Superior Custom Enchantments Creator for Minecraft And Spigot platform
139 stars 61 forks source link

[Feature Request] Adding a %on block broken% Condition #4286

Closed MasonX3 closed 2 weeks ago

MasonX3 commented 1 month ago

Describe the bug

Coming from a Discord ticket, specifically one-time-effec-6434.

Wanted to see about the possibility of adding a %on block broken% condition for HELD enchants, rather than just relying on the MINING trigger.

The main point I have with it is to have items where you can have a potion effect when the item is held, but then have something like durability being taken away or even repairing like sharpening a sword.

How to reproduce

Wanted to get this out there to see what you guys think, fingers crossed!

Screenshots / Videos

No response

"/ae plinfo" link

https://paste.md-5.net/usatepasar

Server Log

No response

GC-spigot commented 2 weeks ago

HELD only activates when item is equipped and unequipped from hand, it does not keep activating itself. This is impossible at the time being.