minecraft:tags

The tags component specifies which tags an item has on it.

Properties

PropertyTypeDefaultWhat it does
tagsList of text[]An array that can contain multiple item tags.

Example from the game files

This is how vanilla diamond_spear uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:tags": {
    "tags": [
      "minecraft:diamond_tier",
      "minecraft:transformable_items",
      "minecraft:is_spear"
    ]
  }
}

Used by 9

Vanilla items with minecraft:tags in their definition:

applecopper_speardiamond_speargolden_speariron_spearnetherite_spearshelf_mushroomstone_spearwooden_spear

Related components