1. Wiki
  2. /Items
  3. /minecraft:tags

minecraft:tags

Don't want to write this by hand? GodCraft sets minecraft:tags for you with a switch.Get GodCraft

Overview

minecraft:tags is an item component: it goes in the components object of a custom item. Adds tags to the item so recipes, scripts and other items can find it by group, for example "minecraft:is_sword".

Fields

FieldTypeDefaultDescription
tagsstring[]noneThe list of tag names given to the item.

Example

Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):

BP/items/<name>.json
{
  "minecraft:tags": {
    "tags": []
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more