Wiki 9Minecraft Wiki 9Minecraft

Create a Basic Item Tooltip with Custom Text and Colors

Java EditionModGuides 4FAQ 10Related mods 48
DownloadData Tip Mod

Get the files on 9Minecraft

Contents (3)
  1. Set Up Your JSON File
  2. Define Your First Tooltip
  3. Apply and Test

Set Up Your JSON File

Create a new file at assets/yournamespace/datatip/datatip.json inside your resource pack folder. This is where all your tooltip definitions live.

Define Your First Tooltip

Start with a simple structure:

`json

{

"tooltips": [

{

"match": "minecraft:diamond_sword",

"lines": [

{

"text": "A powerful blade",

"color": "#FF5733"

},

{

"text": "Deals extra damage",

"color": "#FFFFFF",

"bold": true

}

]

}

]

}

`

Replace yournamespace with your mod or pack name. Use the match field to target item IDs exactly.

Apply and Test

Press F3 + T or run /reload in-game to refresh your resource packs. Hover over the matched item in your inventory to see your custom text appear with your chosen colors and formatting.

More guides for this mod