Data Tip Wiki › Guides › Show Hidden Tooltip Details Only When Holding Shift
Show Hidden Tooltip Details Only When Holding Shift
Mark Lines as Hidden
Use the hidden property to keep certain tooltip lines invisible until the player presses Shift:
`json
{
"match": "minecraft:enchanted_book",
"lines": [
{
"text": "Enchanted Book"
},
{
"text": "Hold Shift for details",
"color": "#AAAAAA"
},
{
"text": "Enchantment: Sharpness V",
"hidden": true
},
{
"text": "Rarity: Legendary",
"hidden": true
}
]
}
`
Configure the Keybind
By default, Left Shift reveals hidden lines. This keybind is typically configurable in the mod settings.
Test the Behavior
Reload with F3 + T. Hover over the item normally to see only visible lines. Then hold Shift while hovering to reveal the hidden details.