U Team Core

U Team Core

37M Downloads

UItemArmor does not work with models

HyCraftHD opened this issue ยท 0 comments

commented

@SideOnly(Side.CLIENT)
@Override
public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type) {
if (slot == EntityEquipmentSlot.HEAD || slot == EntityEquipmentSlot.CHEST || slot == EntityEquipmentSlot.FEET) {
return getRegistryName().getNamespace() + ":textures/models/armor/" + name + "_1.png";
} else if (slot == EntityEquipmentSlot.LEGS) {
return getRegistryName().getNamespace() + ":textures/models/armor/" + name + "_2.png";
} else {
return null;
}
}

getArmorTexture use name for armor models. But name is not the real name, but the name with its type (e.g chestplate).
To solve this, just remove the method, cause you can set the texture with the armor material.