Data Tip Wiki › Guides › How to Set Up Conditional Tooltips and Keybind Reveals
How to Set Up Conditional Tooltips and Keybind Reveals
Hiding Extra Details Behind Keybinds
To prevent tooltips from overcrowding your screen, you can tuck detailed statistics behind a key press.
1. Add your secondary information lines into your datatip.json file.
2. Configure those lines to remain hidden by default.
3. In-game, open your inventory and hover over the item to see its default tooltip.
4. Press and hold Left Shift to expand the box and reveal the hidden details. Releasing the key will collapse the tooltip back to its compact form.
Setting Environmental Conditions
You can configure individual tooltip lines to display only when specific in-game conditions are met. Available triggers include:
- Biome and Dimension: Show specialized lines only while in specific biomes or dimensions.
- Weather: Display text lines strictly during clear weather, rain, or storms.
- Player Hunger: Trigger alerts or stats based on your current player hunger level.
- NBT Data: Check for custom tags and properties on an item to display item-specific information.
When a condition is no longer active, the corresponding line will automatically disappear from the item hover box.