1. Wiki
  2. /Entities
  3. /minecraft:type_family

minecraft:type_family

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

Overview

minecraft:type_family is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Gives the entity one or more family names that filters and other components use to recognize it. For example, add "monster" so iron golems attack it.

Fields

FieldTypeDefaultDescription
familyListnoneThe family names this entity belongs to.

Example

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

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

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