# Item Tooltip

{% hint style="warning" %}

#### Requires **ItemsAdder 4.0.9** or greater.

{% endhint %}

## Configuration

{% code title="contents/test\_tooltip/test\_tooltip\_item.yml" %}

```yaml
info:
  namespace: test_tooltip
items:
  tooltip_rainbow_item:
    display_name: tooltip_rainbow_item
    resource:
      generate: false
      model_path: minecraft:item/emerald
      material: PAPER
    tooltip_style: test_tooltip:tooltip/rainbow

```

{% endcode %}

## Image files

Create the required files into `contents/test_tooltip/textures/tooltip/`.

<figure><img src="https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-abd46244be1ab152a15bfc2acfa24eee61d41bf4%2Fimage%20(2)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Tooltip support animated textures (`.png.mcmeta` files).
{% endhint %}

Run `/iazip` and then get the item ingame.

<figure><img src="https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-3e8392c1799c00e334f6b89e9dcca7106032178c%2Fimage%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

## Old method

You can add custom textured tooltips for your items, please refer to this example addon:\
<https://www.spigotmc.org/resources/items-custom-tooltip-texture-example-itemsadder-addon.87883/>

![https://i.imgur.com/eA7iz50.gif](https://i.imgur.com/eA7iz50.gif)

## Limitations

{% hint style="warning" %}

* you cannot show custom enchants as they will go out of the window if the image is too small
* you have to write everything in the tooltip image, text would go out of the window if the image is too small
  {% endhint %}
