Tooltip
Applies the specified tooltip(s) to an item that is only visible to the entity that has the power.
Type ID: origins:tooltip
Note
The text and texts fields can accept JSON text components. However, JSON text components that needs to be resolved may not work.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
item_condition |
Item Condition Type | optional | If specified, the specified tooltip(s) will only apply to items that fulfills this condition. |
text |
String | optional | If specified, apply this string as a tooltip. |
texts |
Array of Strings | optional | If specified, apply these strings as a tooltip. |
Examples
{
"type": "origins:tooltip",
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "minecraft:egg"
}
},
"text": "Hmm, egg."
}
This example will apply a "Hmm, egg." tooltip to an Egg item.