# 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="/files/BgJ87obpjdDo8KsSocF1" 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="/files/vkS6dUrxqOs5xPyPhYwi" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://itemsadder.devs.beer/japanese/plugin-usage/adding-content/item-tooltip.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
