Obscure Tooltips
Tooltip Labels
Label files define the additional line of text displayed beneath an item’s name. Using providers, labels can display the item’s rarity or custom text. If an item matches multiple label definitions, the one with the highest priority is applied.
For example, the following file will display the rarity label for all items:
{
"priority": 0,
"provider": {
"type": "obscure_tooltips:rarity"
},
"filter": {
"type": "obscure_tooltips:always"
}
}
Rarity Label Provider
"provider": {
"type": "obscure_tooltips:rarity"
}
Literal Label Provider
"provider": {
"type": "obscure_tooltips:literal",
"text": "Some Text"
}
Translatable Label Provider
"provider": {
"type": "obscure_tooltips:translatable",
"key": "label.my_mod.some_text"
}