Wiki 9Minecraft Wiki 9Minecraft
Data Tip Wiki › Guides › How to Configure Global Tooltip Settings and Layout Offsets

How to Configure Global Tooltip Settings and Layout Offsets

Modifying Global Config Options

You can adjust mod-wide behavior by editing the mod's configuration file. The available settings include:

  • enabled: A global toggle to turn the entire custom tooltip system on or off.
  • defaultColor: Sets the fallback text color across all custom tooltips using ARGB color values.
  • defaultLineHeight: Sets the default line spacing in pixels to adjust the vertical gaps between lines.
  • maxWidth: Sets the maximum width limit for tooltip boxes in pixels, preventing long text strings from stretching across the screen.

Adjusting Element Layout and Offsets

When combining text, 3D rotating models, progress bars, and graphs, you can fine-tune element placement in your datatip.json definitions using offset values:

  • Horizontal Offsets: Shift text lines, icons, or models horizontally within the hover box to create margins or columns.
  • Vertical Offsets: Shift elements vertically to align icons neatly with text or prevent graphical charts from overlapping.

Using these offsets in conjunction with maxWidth and defaultLineHeight ensures all multi-line text and visual previews fit neatly inside your inventory interface.