
The library mod adds a tag that can be applied to enchantments and then they will be applied every tick, even while in the player's inventory. There are also two tags for data component types which allow you not to play the item animation in your hand and not to interrupt the destruction of a block when the value of a tagged component on an ItemStack changes
The library also provides the EnchantmentUtil class, which contains several static methods for working with enchantments
Requires Fabric API
Should work on NeoForge with Sinytra Connector and Forgified Fabric API