Tooltip (Power Type)

Applies the specified tooltip(s) to an item that is only visible to the entity that has the power.

Applies the specified tooltip(s) to an item that is only visible to the entity that has the power.

Type ID: apoli:tooltip

!!! warning

Currently, this power type is not able to “resolve” certain JSON text components. See Minecraft Wiki: Raw JSON text format (Component resolution) for more information.

Fields

FieldTypeDefaultDescription
item_conditionItem Condition TypeoptionalIf specified, the specified tooltip(s) will only apply to items that fulfills this condition.
textText ComponentoptionalIf specified, apply this string as a tooltip.
textsArray of Text ComponentsoptionalIf specified, apply these strings as a tooltip.
orderInteger0Determines the placement order of the tooltip(s) of the power.

Examples

{
    "type": "apoli:tooltip",
    "item_condition": {
        "type": "apoli:ingredient",
        "ingredient": {
            "item": "minecraft:egg"
        }
    },
    "text": "Hmm, egg."
}

This example will apply a ”Hmm, egg.” tooltip to an Egg item.

{
    "type": "apoli:tooltip",
    "item_condition": {
        "type": "apoli:ingredient",
        "ingredient": {
            "item": "minecraft:cake"
        }
    },
    "text": {
        "text": "Happy birthday!",
        "color": "yellow"
    }
}

This example will apply a yellow-colored ”Happy birthday!” tooltip to a Cake item.