Get the files on 9Minecraft
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.
More guides for this mod
Add Conditional Tooltip Lines Based on Game StateCreate a Basic Item Tooltip with Custom Text and ColorsDisplay Live Player Stats and World Data in Tooltips








