-
Notifications
You must be signed in to change notification settings - Fork 13
Tool Tips
cubex2 edited this page Apr 23, 2017
·
2 revisions
Type name: toolTip
{
"item": "minecraft:coal",
"text" : [ "This is coal.", "It burns" ],
"clearExisting" : true,
"mode" : "noshift"
}- item: This is an ItemStack specifying the item to add the tool tip to.
- text: This is a list of strings, where each string is a line in the tool tip.
- clearExisting: Specifies whether the existing tool tip should be cleared. You can use this to replace an existing tool tip with your own. This is optional and defaults to false.
- mode: This defines when the tool tip is shown. There are 7 modes: all, ctrl, shift, alt, noctrl, noshift and noalt.
The following two tool tips cause coal to have a "Press Shift for more" tool tip. Note that the first one has its mode set to noshift and not all. Otherwise the "Press SHIFT" line would still show up when pressing SHIFT.
{
"item": "minecraft:coal",
"text" : [ "Press SHIFT for more text" ],
"mode" : "noshift"
},
{
"item": "minecraft:coal",
"text" : [ "This is coal.", "It burns." ],
"mode" : "shift"
}