ZidMC
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]

2 posters

Go down

[Unanswered] How do I get the armour skins to work?  [1.5_01] MCP 212] Empty [Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]

Post by King Haz Sun May 08, 2011 7:16 am

I am using the add.armor and im wondering which number it is to tell it what skin to use.
Ive put my sapphire_1 and 2 into armor
And ive put sapphire into RenderPlayer

This is my first mod ever so really need help.

Thanks

-haz

King Haz
Recruit

Posts : 4
Join date : 2011-05-08

Back to top Go down

[Unanswered] How do I get the armour skins to work?  [1.5_01] MCP 212] Empty Re: [Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]

Post by Methuselah96 Sun May 08, 2011 7:44 am

A mini-tutorial on how to add armor with modloader

So to make armor first what you have to do is make each item where you declare all your other items
Let's take a titanium helmet for example
Code:
        public static Item helmetTitanium = (new ItemArmor(143, 3, ModLoader.AddArmor("titanium"), 0)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/CamelOre/Titanium Helmet.png")).setItemName("helmetTitanium");

helmetTitanium is the name of item
143 is the item id
3 is how good the armor is
ModLoader.AddArmor("titanium") will return a armor index such as 5 which will be located at /armor/titanium_1.png
0 is what type of armor it is 0 for helmets, 1 for chestplates, 2 for leggings, 3 for boots

setIconIndex(ModLoader.addOverride("/gui/items.png", "/CamelOre/Titanium Helmet.png")) will make /CamelOre/Titanium Helmet.png the icon index
setItemName("helmetTitanium") sets the item name

then all you have to do is add the name with all the other add names
Code:
    ModLoader.AddName(helmetTitanium, "Titanium Helmet");


Last edited by Methuselah96 on Sun May 08, 2011 7:52 am; edited 1 time in total
Methuselah96
Methuselah96
ZidMC Coder
ZidMC Coder

Posts : 159
Join date : 2011-04-22
Age : 28
Location : Philadelphia, Pennsylvania, United States

Back to top Go down

[Unanswered] How do I get the armour skins to work?  [1.5_01] MCP 212] Empty Re: [Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]

Post by King Haz Sun May 08, 2011 7:45 am

Dude your a legend and your 14 wow !!!

King Haz
Recruit

Posts : 4
Join date : 2011-05-08

Back to top Go down

[Unanswered] How do I get the armour skins to work?  [1.5_01] MCP 212] Empty Re: [Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]

Post by Methuselah96 Sun May 08, 2011 7:53 am

King Haz wrote:Dude your a legend and your 14 wow !!!
lol
if the tutorial sounds too complicated i can make it sound easier
Methuselah96
Methuselah96
ZidMC Coder
ZidMC Coder

Posts : 159
Join date : 2011-04-22
Age : 28
Location : Philadelphia, Pennsylvania, United States

Back to top Go down

[Unanswered] How do I get the armour skins to work?  [1.5_01] MCP 212] Empty question

Post by King Haz Sun May 08, 2011 7:56 am

What i meant is ive got all code. Im wondering which word or number states what skin to use from armor foldere?

King Haz
Recruit

Posts : 4
Join date : 2011-05-08

Back to top Go down

[Unanswered] How do I get the armour skins to work?  [1.5_01] MCP 212] Empty Re: [Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]

Post by Methuselah96 Sun May 08, 2011 7:58 am

Code:
ModLoader.AddArmor("titanium")

this states that the two pngs it's going to use is
/armor/titanium_1.png
and
/armor/titanium_2.png
Methuselah96
Methuselah96
ZidMC Coder
ZidMC Coder

Posts : 159
Join date : 2011-04-22
Age : 28
Location : Philadelphia, Pennsylvania, United States

Back to top Go down

[Unanswered] How do I get the armour skins to work?  [1.5_01] MCP 212] Empty Re: [Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]

Post by King Haz Sun May 08, 2011 7:59 am

okay thanks dude

King Haz
Recruit

Posts : 4
Join date : 2011-05-08

Back to top Go down

[Unanswered] How do I get the armour skins to work?  [1.5_01] MCP 212] Empty Re: [Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum