Jade ๐Ÿ”

Jade ๐Ÿ”

93M Downloads

[Suggestion] Per-rarity tooltip theming

ChloeDawn opened this issue ยท 1 comments

commented

Mod loader

Forge

Minecraft version

1.18.2

Mod version

5.2.3

Modloader version

40.1.68

Modpack info

No response

If bug:

  • Can you reproduce this issue with relevant mods only?

If bug: The latest.log file

No response

Issue description

It would be great if you could change theme properties on a per-rarity basis. I would like to be able to change the font color to match Minecraft's rarity coloring, and the gradients to match the coloring applied by mods such as Legendary Tooltips. An example of an item tooltip can be seen below, compared with an in-world Jade tooltip of the dropped item.

A screenshot of the item tooltip for an enchanted book, modified by Legendary Tooltips to have a yellow border
A screenshot of an in-world tooltip for a dropped enchanted book, with a white title and standard border

A possible specification could be as follows:

"jade:legendary": {
  "id": "jade:legendary",
  "backgroundColor": 1250067,
  "gradientStart": 11513775,
  "gradientEnd": 5197647,
  "titleColor": 16777215,
  "textColor": 10526880,
  "textShadow": true,
  "perRarity": {
    "uncommon": {
      "gradientStart": 11712317,
      "gradientEnd": 5260572,
      "titleColor": 16645460
    },
    "rare": {
      "gradientStart": 10448163,
      "gradientEnd": 6044446,
      "titleColor": 5569788
    },
    "epic": {
      "gradientStart": 10448163,
      "gradientEnd": 6044446,
      "titleColor": 16536828
    }
  }
}

Default values for each rarity specification could be inferred from the global theme values.

commented

Alternatively, if there is some way to support Legendary Tooltips and their border decorations too, that would be great!