> For the complete documentation index, see [llms.txt](https://wiki.modernmodpacks.site/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.modernmodpacks.site/wiki/hellish-mods/digitality/data-packs/tags.md).

# Tags

As with [models](/wiki/hellish-mods/digitality/resource-packs/models.md), there exists different kinds of tags in minecraft and currently digitality can only add item tags. Here's how:

## Item tags

```java
data.itemTag("<tag (without the mod id)>", "<item1 (with the mod id)>", "<item2>"...);
```

{% code title="Example" %}

```java
// This code adds the "minecraft:beehives" tag to "minecraft:iron_ingot" and "minecraft:gold_ingot" items
VirtualDataPack data = new VirtualDataPack("minecraft");
data.itemTag("beehives", "minecraft:iron_ingot");
data.itemTag("beehives", "minecraft:gold_ingot");
```

{% endcode %}

<figure><img src="/files/t5ZFqvXdBnRQHoP7tDzC" alt=""><figcaption><p>In-game demonstration</p></figcaption></figure>
