[Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]
2 posters
Page 1 of 1
[Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]
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
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
Re: [Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]
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
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
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- ZidMC Coder
- Posts : 159
Join date : 2011-04-22
Age : 28
Location : Philadelphia, Pennsylvania, United States
Re: [Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]
Dude your a legend and your 14 wow !!!
King Haz- Recruit
- Posts : 4
Join date : 2011-05-08
Re: [Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]
lolKing Haz wrote:Dude your a legend and your 14 wow !!!
if the tutorial sounds too complicated i can make it sound easier
Methuselah96- ZidMC Coder
- Posts : 159
Join date : 2011-04-22
Age : 28
Location : Philadelphia, Pennsylvania, United States
question
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
Re: [Unanswered] How do I get the armour skins to work? [1.5_01] MCP 212]
- 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- ZidMC Coder
- Posts : 159
Join date : 2011-04-22
Age : 28
Location : Philadelphia, Pennsylvania, United States
King Haz- Recruit
- Posts : 4
Join date : 2011-05-08
Similar topics
» Help - Keypad [Unanswered]
» [UNANSWERED] How can I fix this?
» [Unanswered]Please help!
» [Unanswered]NullPointerException[2.12][1.5_01]
» [Unanswered]Please a tutorial for this
» [UNANSWERED] How can I fix this?
» [Unanswered]Please help!
» [Unanswered]NullPointerException[2.12][1.5_01]
» [Unanswered]Please a tutorial for this
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|