Item Tags
Item tags can be used to ensure that an item meets certain conditions.
Applying Tags
From 1.20.50 and Onwards
json
{
"format_version": "1.21.70",
"minecraft:item": {
"description": {
"identifier": "wiki:my_item"
},
"components": {
"minecraft:tags": {
"tags": ["wiki:my_tag"]
}
}
}
}
Before 1.20.50
json
{
"format_version": "1.20.40",
"minecraft:item": {
"description": {
"identifier": "wiki:my_item"
},
"components": {
"tag:wiki:my_tag": {}
}
}
}
Testing for Tags
Tags can be queried with:
q.all_tags
q.any_tag
q.equipped_item_all_tags
q.equipped_item_any_tag
List of Vanilla Tags
Tag | Vanilla Usage | Functionality |
---|---|---|
minecraft:arrow |
| |
minecraft:banner |
| |
minecraft:boat |
| |
minecraft:boats |
| |
minecraft:bookshelf_books |
| Items that can be stored in a Chiseled Bookshelf. |
minecraft:chainmail_tier |
| |
minecraft:coals |
| |
minecraft:crimson_stems |
| |
minecraft:decorated_pot_sherds |
| Items that can be used to craft a Decorated Pot. Learn how to create custom pottery sherds here. |
minecraft:diamond_tier |
| |
minecraft:digger |
| |
minecraft:door |
| |
minecraft:egg |
| |
minecraft:golden_tier |
| |
minecraft:hanging_actor |
| |
minecraft:hanging_sign |
| |
minecraft:horse_armor |
| |
minecraft:iron_tier |
| |
minecraft:is_armor |
| |
minecraft:is_axe |
| |
minecraft:is_cooked |
| |
minecraft:is_fish |
| |
minecraft:is_food |
| |
minecraft:is_hoe |
| |
minecraft:is_meat |
| |
minecraft:is_minecart |
| |
minecraft:is_pickaxe |
| |
minecraft:is_shears |
| |
minecraft:is_shovel |
| |
minecraft:is_sword |
| |
minecraft:is_tool |
| |
minecraft:is_trident |
| |
minecraft:leather_tier |
| |
minecraft:lectern_books |
| |
minecraft:logs_that_burn |
| |
minecraft:logs |
| |
minecraft:mangrove_logs |
| |
minecraft:music_disc |
| |
minecraft:netherite_tier |
| |
minecraft:planks |
| Allows the item to be used as planks in crafting recipes. |
minecraft:sand |
| |
minecraft:sign |
| |
minecraft:soul_fire_base_blocks |
| |
minecraft:spawn_egg |
| |
minecraft:stone_bricks |
| |
minecraft:stone_crafting_materials |
| Items that can be used like cobblestone when crafting blocks such as the Furnace and Brewing Stand. |
minecraft:stone_tier |
| |
minecraft:stone_tool_materials |
| Items that can be used like cobblestone to craft stone tools. |
minecraft:transform_materials |
| |
minecraft:transform_templates |
| |
minecraft:transformable_items |
| |
minecraft:trim_materials |
| |
minecraft:trim_templates |
| |
minecraft:trimmable_armors |
| Items that can be trimmed in a Smithing Table. |
minecraft:vibration_damper |
| Prevents the item from emitting vibrations when dropped onto the ground. |
minecraft:warped_stems |
| |
minecraft:wooden_slabs |
| |
minecraft:wooden_tier |
| |
minecraft:wool |
| Allows the item to be used as wool in crafting recipes. |
Contributors
Edit Item Tags on GitHubText and image content on this page is licensed under the Creative Commons Attribution 4.0 International License
Code samples on this page are licensed under the MIT License