Jump to content

Recommended Posts

Posted

Okay this may seem realy noobish but I need help with creating custom armor (put facepalm gif here)

Does anybody know whats wrong with this line of code here

 

@Override

public String getArmorTexture(ItemStack itemstack) {  (<-------------- I removed the add overide and that went away)

if(itemstack.itemID == TitaniumMod.TitanHelmet.itemID || itemstack.itemID == TitaniumMod.TitanPlate.itemID || itemstack.itemID == TitaniumMod.TitanBoots.itemID){

return <------------ this method must return a result of type string

}

 

 

this from my main mod class

//armor

 

TitanHelmet = new TitanArmor(3457, TitanHelmet, proxy.addArmor(""), 0).setUnlocalizedName("");

TitanPlate = new TitanArmor(3458, TitanPlate, proxy.addArmor(""), 1).setUnlocalizedName("");

TitanLegs = new TitanArmor(3459, TitanLegs, proxy.addArmor(""), 2).setUnlocalizedName("");

TitanBoots = new TitanArmor(3460, TitanBoots, proxy.addArmor(""), 3).setUnlocalizedName("");

 

Posted

EnumArmorMaterial TitanArmor = EnumHelper.addArmorMaterial("TITANIUM", 12, new int[] {2, 5, 4, 2}, 9);

 

 

TitanBoots = new TitanArmor(2040, TitanArmor, 6, 3).setUnlocalizedName("titaniumboots");

this works for me

Posted

okay now its just purple and black squares. I put it in my items folder but now it says this

 

 

  Reveal hidden contents

 

 

I was able ot fix the missing texture but it shows up on my body as nothing any idea how to render it?

 

whats the MISSING_ICON_ITEM_2294 from

 

armor class

 

  Reveal hidden contents

 

Main class

 

  Reveal hidden contents

 

 

Posted

 

  Reveal hidden contents

 

Is this better your highness      \0/

                                                  | |                                   

                                                  _||_

 

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.