Posted June 12, 20214 yr I'm making an Dyable armor, but I don't know how the overylay textures work. I use the "getArmorTexture" in the other armors that I've make, and it worked, but in Dyable Armor it doesn't. Here's this method: @Nullable @Override public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) { if(stack.getItem() instanceof MagicArmor){ if(slot.getIndex() == 1){ return new ResourceLocation(ExampleMod.MOD_ID, "textures/models/armor/magic_armor_layer_2_overlay.png").toString(); } return new ResourceLocation(ExampleMod.MOD_ID, "textures/models/armor/magic_armor_layer_1_overlay.png").toString(); } return null; } I just wanna know where I return the normal texture (Dyable) and the overlayed Texture.
June 12, 20214 yr Author Thanks It work. But for the item texture(not the armor model). I see that Dyable items need to be registered in the "ItemColors". There is an event to do it? -Forget it, just see the ColorHandlerEvent. Edited June 12, 20214 yr by LuccaPossamai hm
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.