概览
minecraft:tags 是一个物品组件:写在自定义物品的 components 对象中。 给物品添加标签,让配方、脚本和其他物品可以按分组找到它,例如 "minecraft:is_sword"。
字段
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
tags | string[] | 无 | 给物品添加的标签名称列表。 |
示例
写在 BP/items/<name>.json 的 components 对象中(值为默认值或占位值):
BP/items/<name>.json
{
"minecraft:tags": {
"tags": []
}
}