Skip to content

Latest commit

 

History

History
48 lines (42 loc) · 2.13 KB

File metadata and controls

48 lines (42 loc) · 2.13 KB

InfoDataPack

A mod to add tooltip and jei information to items with a datapack

Usage

You can find examples below, the same examples are available in the example_datapack folder

The json text can for example be generated with the help of minecraftjson.com or minecraft.tools

Tooltip

Tooltip image

{
    "items": [
        "minecraft:diamond",
        "minecraft:coal"
    ],
    "tooltips": [
        {"text":"This ", "extra": [{"text":"is an","underlined":true},{"text":" Example ","color":"green"},{"text":"Tooltip","bold":true,"color":"green"}]},
        ["",{"text":"This "},{"text":"is another ","italic":true,"color":"red"},{"text":"way to ","strikethrough":true},{"keybind":"key.attack"},{"text":" do it","bold":true,"underlined":true,"color":"dark_green"}],
        {"translate":"item.minecraft.diamond","bold":true},
        "No special style also works",
        "§4Legacy coloring §aalso works"
    ]
}

JEI

Tooltip image

{
    "items": [
        "minecraft:diamond",
        "minecraft:coal"
    ],
    "infos": [
        {"text":"This ", "extra": [{"text":"is an","underlined":true},{"text":" Example ","color":"green"},{"text":"Tooltip","bold":true,"color":"green"}]},
        ["",{"text":"This "},{"text":"is another ","italic":true,"color":"red"},{"text":"way to ","strikethrough":true},{"keybind":"key.attack"},{"text":" do it","bold":true,"underlined":true,"color":"dark_green"}],
        {"translate":"item.minecraft.diamond","bold":true},
        "No special style also works",
        "§4Legacy coloring §aalso works"
    ]
}