Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Dyeable armor, little help :)


Jade_Knightblazer
 Share

Recommended Posts

I have a functional armor set which the icons change based on dye used. However now I am at the point of have the armor render on the player.

 

How do I import both needed texture files for 1.4.2 new cloth_1_b and cloth_2_b.

 

Here is what I use for normal Armor:

public String getArmorTextureFile(ItemStack itemstack)
    {
  		//Livingmetal
        if(itemstack.itemID == mod_HarkenScythe.HSHelmetLivingmetal.shiftedIndex || itemstack.itemID == mod_HarkenScythe.HSPlateLivingmetal.shiftedIndex || itemstack.itemID == mod_HarkenScythe.HSBootsLivingmetal.shiftedIndex)
        {
        	return "/mod_HarkenScythe/HarkenScytheTex/livingmetal_1.png";
        }
        if(itemstack.itemID == mod_HarkenScythe.HSLegsLivingmetal.shiftedIndex)
        {
            return "/mod_HarkenScythe/HarkenScytheTex/livingmetal_2.png";
        }
        
        //Soulweave
        if(itemstack.itemID == mod_HarkenScythe.HSHelmetSoulweave.shiftedIndex) //|| itemstack.itemID == mod_HarkenScythe.HSPlateLivingmetal.shiftedIndex || itemstack.itemID == mod_HarkenScythe.HSBootsLivingmetal.shiftedIndex)
        {
            return "/mod_HarkenScythe/HarkenScytheTex/soulweave_1.png";
        }
        /*if(itemstack.itemID == mod_HarkenScythe.HSLegsLivingmetal.shiftedIndex)
        {
                    return "/mod_HarkenScythe/HarkenScytheTex/livingmetal_2.png";
        }*/
        return "/mod_HarkenScythe/HarkenScytheTex/livingmetal_1.png";
        this.get
    }

 

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
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.

 Share



×
×
  • Create New...

Important Information

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