1. Wiki
  2. /实体
  3. /minecraft:type_family

minecraft:type_family

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

概览

minecraft:type_family 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 给实体一个或多个家族名称,过滤器和其他组件用它来识别实体。比如加上 "monster",铁傀儡就会攻击它。

字段

字段类型默认值说明
familyList无这个实体所属的家族名称。

示例

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

BP/entities/<name>.json
{
  "minecraft:type_family": {
    "family": {}
  }
}

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