Open fdigl opened 3 years ago
That sounds doable, I also planned to add an option to display the item's lore (could be useful in case the parsing is too wonky :p )
Do you know names of plugins/mods that add enchantments like that? That could come in handy, I've already found Better Enchantments
I do! EcoEnchants happens to do that while hooking into vanilla enchants in Essentials, making them easy to apply (source here: https://github.com/Auxilor/EcoEnchants)
I'll give it a look later, thanks :>
Some servers add custom enchantments or extend the amount of levels an enchantment can go up to, hiding the enchantments and replacing them with identical-looking lore which renders this mod incompatible. Would it be possible to search the currently held item for lore that matches the following format, scanning from the first lore line to the first empty line?
§7{enchantmentName} {numeralOrNumber}
(Start parsing)§7{enchantmentName} {numeralOrNumber}
§7{enchantmentName} {numeralOrNumber}
{empty}
(End parsing){Lore Lines}