> 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="https://3462309945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff9DP8gpELIkQ3U8skuPM%2Fuploads%2FTcDPenbtEFmqLde7Vdzt%2Fimage.png?alt=media&amp;token=5036b560-62d3-4b4d-ba6c-af46d0f43810" alt=""><figcaption><p>In-game demonstration</p></figcaption></figure>
