Jump to content

Dyable textures overlay


LuccaPossamai

Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.