Better Enchanted Books (Fabric)

Better Enchanted Books (Fabric)

691k Downloads

[Feature Request] Show maximum enchantment level in tooltip

maxsupermanhd opened this issue ยท 8 comments

commented

Sometimes I just forget what's maximum level of enchantment, will be nice to have it in tooltip. Bet that's easy to make

commented

How would you do something like that?
Like Sharpness III/V?
Could you please be more expressive about what you had in mind?

commented

Yeah, something like III/V will do perfectly fine. Actually any format will do, even ... III (max IV). It's up to you mostly, I just want it to be more accessible like so I can get this information from game itself without spending time getting second book or trying to level up maxed out enchantment. As I remember there is no way in default Minecraft to get max level information, only trip to the wiki...

PS I'm happy that you are alive, great mod, I enjoy it, thank you

commented

Well thank you for that!
I thought I had it all done but I guess this is a weird side-effect of how I tried to do it :)
image
I should have this fixed within the next hour

commented

Done
image

commented

It's supposed to work with any added enchantments just like any other of my mod's features.

commented

This is technically done but I guess maybe I should add an option where either the whole name is colored different if it at max level or the max level isn't shown in case the enchantment already is at max level or both maybe idk.

But that's a problem for the future, anyway, hope you enjoy the new feature! (it's disabled by default so you will need to change the settings for the mod)

commented

Thank you, I appreciate your work man.

As I understood from your messages here (not really understanding this mixin and stuff in java) it will detect available enchantments in game and get info about them or they are just yeet-hardcoded? (hope not)

commented

Yeah everything should work with added enchantments. The only thing that is hard coded, and that I do plan to make configurable, is the list of items/icons that show on the tooltip.
Every enchantment and the items they can be applied to are calculated at runtime and so it should work with any mods that add enchantments without any additional setup.