Tooltips
Since MineTweaker 3.0.8, you can now add tooltips to items.
Adding tooltips can be done directly on any kind of ingredient:
<ore:plankWood>.addTooltip("These are wood planks");<minecraft:stick>.addTooltip("These are sticks");
Two kinds of tooltips are available: regular tooltips and tooltips that only appear when the shift key is being pressed:
<minecraft:stick>.addShiftTooltip("Only appears with shift");
Markup
Tooltips can be colored and styled using the format functions:
<minecraft:stick>.addTooltip(format.green("This is green text"));
The following formatting functions are available:
format.blackformat.darkBlueformat.darkGreenformat.darkAquaformat.darkRedformat.darkPurpleformat.goldformat.grayformat.darkGrayformat.blueformat.greenformat.aquaformat.redformat.lightPurpleformat.yellowformat.white
format.obfuscatedformat.boldformat.strikethroughformat.underlineformat.italic
Strings (and formatted strings) can be concatenated and nested easily:
<minecraft:stick>.addTooltip(format.green(format.italic("This is a stick") + " with " + format.strikethrough("text")) + " in multiple styles");
Be careful to match the brackets properly!