How to Create and Reload Custom Tooltips with a Resource Pack
Setting Up the Tooltip File
To build custom tooltips, you define them inside a standard Minecraft resource pack. Create a JSON file at the following path:
assets/<namespace>/datatip/datatip.json
Replace <namespace> with minecraft or your custom pack namespace. Inside this file, specify which items receive tooltips. Data Tip Mod allows you to target items using three methods:
- Exact Item IDs: Apply tooltips directly to specific items.
- Item Tags: Group multiple items together using standard Minecraft tags.
- Wildcard Patterns: Target broad groups of items matching pattern rules.
Within each definition, add your desired text lines, custom fonts, bold formatting, and colors.
Applying Changes In-Game
You do not need to restart your Minecraft client to test your updates.
1. Save your changes to datatip.json.
2. Return to the game and press F3 + T to reload your resource packs (or run the /reload command).
3. Open your inventory and hover over the targeted item to view your new custom tooltip.
All text styles and custom elements will refresh immediately upon reloading.