1. Wiki
  2. /物品
  3. /minecraft:tags

minecraft:tags

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:tags。Get GodCraft

概览

minecraft:tags 是一个物品组件:写在自定义物品的 components 对象中。 给物品添加标签,让配方、脚本和其他物品可以按分组找到它,例如 "minecraft:is_sword"。

字段

字段类型默认值说明
tagsstring[]无给物品添加的标签名称列表。

示例

写在 BP/items/<name>.json 的 components 对象中(值为默认值或占位值):

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

物品: 行为包

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