LibTooltips is a simple library that allows for translation-key driven tooltips for your items. No code needed.

  "tooltip.minecraft.diamond.name" : "<rgb>Diamond!</rgb>",
  "tooltip.minecraft.diamond.0" : "wow a fancy <rgb>description!</rgb> very <gradient-03>cool</gradient-30> description me thinks.",
  "tooltip.minecraft.diamond.1" : "You can add <rgb>more lines</rgb> by just simply doing .1 .2 etc!",
  "tooltip.minecraft.diamond.2" : "<gradient-30>You can define a gradient like this!</gradient-60>",
  "tooltip.minecraft.diamond.3" : "The 30 and 60 refer to a scale from 00 to 99 for the hue.",
  "tooltip.minecraft.diamond.4" : "",
  "tooltip.minecraft.diamond.5" : "You can make a 'line break' by just leaving the translation empty like this.",

  "tooltip.minecraft.diamond.7" : "skipping a number will stop the tooltip 'cycle', so don't do that. this text will never be rendered",
  "tooltip.minecraft.diamond.8" : "This works with any item or block, not just your mod or vanilla!"

output2

If you're developing a modpack, you can also include this mod by itself to allow for tooltip support!

Can you port to X?

Sure! Currently the library is only used by my two mods, so it's only on the versions those mods are on, but it's an easy library to port. Let me know through the discord!

Join the discord

Visit the Wiki Page for more information.


Project members

wdiscute

Member

Details

Licensed MIT
Published 13 days ago
Updated 15 days ago