Held Item Info

Held Item Info

461k Downloads

Suggestion: Support Lore Enchantments

fdigl opened this issue · 4 comments

commented

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}

commented

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

commented

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)

commented

I'll give it a look later, thanks :>

commented

Heads up, EcoEnchants just changed up how it displays enchants. If you have a certain amount of enchants, it consolidates enchants up to 2 per line I think

Image