The modding capabilities we have right now are pretty awesome, but we're missing a way to create custom enchantments. Given the new APIs to deal with enchantments in the GameTest framwork, I think it would make sense to have a way to add custom ones through a json based definition in a behavior pack.
I think that just a way to create an "empty" enchant would be, which then could be used in one of the scripting events to check for capabilities as context to handle the event.
Thank you for your report!
However, this issue has been closed as Invalid.
This is more of a feature request or suggestion. For suggestions, please visit the Minecraft Feedback Site.