Skip to content

Repository files navigation

IA-Tooltips

Gives every item on the server a rarity: a minecraft:tooltip_style component plus a MiniMessage gradient wrapped around its name. Works with vanilla items and ItemsAdder custom items.

How it works

  • Every item falls back to a configurable default-rarity.
  • materials: maps a vanilla Material to a rarity.
  • itemsadder-items: maps an ItemsAdder namespaced id to a rarity.
  • enchant-triggers: bumps an item's rarity when it carries a given enchant at or above a level.
  • If more than one rule matches, the highest-ranked rarity wins.
  • Rarity tiers (common, rare, epic, legendary by default) are fully admin-defined in config.yml — add, remove, or reorder freely. Each tier must use a unique tooltip-style key, including its namespace.

Tooltips get applied on join, inventory clicks, crafting, pickup, item drops, anvil renames, and on ItemsAdder reload, plus a periodic sweep that catches anything else (hoppers, dispensers, other plugins spawning items).

Renaming an item in an anvil keeps your custom text — the rarity gradient just wraps around whatever name is currently on the item.

Commands

/iatooltips (permission iatooltips.admin):

  • reload — reload config.yml
  • set <material|ia-id> <rarity> — add or change a mapping, saved to config.yml
  • refresh <player|all> — force a reapply right now
  • apply <rarity|tooltip-style> — apply a configured tier to your held item. Both a tier ID such as common and its configured full style ID such as lzblocks:tooltip/common work; the command applies that tier's tooltip style and name gradient, then persists it as a manual override so automatic scans do not replace it.

Requirements

  • Paper 1.21.4+
  • ItemsAdder (hard dependency)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages