Hey, I wanted to know how I would link an entity's model file (.java exported from blockbench) and the entity itself. Can't seem to figure that out.
Here's my entity code:
public class headcrabEntity extends ChickenEntity{
@SuppressWarnings("unchecked")
public static EntityType<headcrabEntity>
TYPE = (EntityType<headcrabEntity>) EntityType.Builder.create(headcrabEntity::new, EntityClassification.MONSTER).build("headcrab").setRegistryName(BaseMod.MODID, "headcrab");
public headcrabEntity(World worldIn){ super(TYPE, worldIn); }
public headcrabEntity(EntityType type, World worldIn) { super(type, worldIn); }
public static Item EGG = EntityUtils.buildEntitySpawnEgg(TYPE, 0xb00101, 0xacbf1f);
public static AttributeModifierMap.MutableAttribute setupAttributes() {
return EntityUtils.addAttributes(false,40,30.0d,10,0,8.0d,2,10);
}
}
Thanks