Hi! I'm modding Minecraft 1.2.5 with MCP, Modloader, and Eclipse. My code where I instantiated the items says
<SPOILER>
public static final Item platinumHelmet = new mod_PlatinumArmor(1644,
ModLoader.addArmor("Platinum"), 0)
.setItemName("Platinum");
public static final Item platinumChestPlate = new mod_PlatinumArmor(1645,
ModLoader.addArmor("Platinum"), 1)
.setItemName("Platinum");
public static final Item platinumPants = new mod_PlatinumArmor(1646,
ModLoader.addArmor("Platinum"), 2)
.setItemName("Platinum");
public static final Item platinumBoots = new mod_PlatinumArmor(1647,
ModLoader.addArmor("Platinum"), 3)
.setItemName("Platinum");
</SPOILER>
I tried adding platinum_1.png and platinum_2.png to the mcp/temp/bin/minecraft/armor folder and the bin/minecraft folder. Neither worked. Am I doing something wrong? How does this work? I thought that in Modloader.addArmor("string"), Minecraft looks for string_1.png and string_2.png in one of these folders? Help! Thanks so much
I'm not sure what you're doing at all. There's armor tutorials Here.
Haha, alright. Sorry for being unclear, and thanks for the link. One question: When I make new armor textures (the ones that show up on the player, like diamond_1, diamond_2, etc.) where do I put them?
Edit: It says minecraft.jar. WHich minecraft.jar?!
Haha, alright. Sorry for being unclear, and thanks for the link. One question: When I make new armor textures (the ones that show up on the player, like diamond_1, diamond_2, etc.) where do I put them?
Edit: It says minecraft.jar. WHich minecraft.jar?!
You put them in your Minecraft.jar/armor in the Jars folder.
Rollback Post to RevisionRollBack
Old mostly dead account. I only check here once in a blue moon.
I think it's just whatever you call the armor. I once made armor for a mod. That was a long time ago, though. I can't remember.
Well, I put ModLoader.addArmor("Platinum") for all of the armor pieces. Then I added platinum_1 and platinum_2 to /armor/ in mcp/jars/bin/minecraft.jar. Still not working
Well, I put ModLoader.addArmor("Platinum") for all of the armor pieces. Then I added platinum_1 and platinum_2 to /armor/ in mcp/jars/bin/minecraft.jar. Still not working
Just keep looking through tutorials. You'll hit one eventually.
Rollback Post to RevisionRollBack
Old mostly dead account. I only check here once in a blue moon.
Fixed it! In case anybody finds this on google and has the same issue: the method is CASE SENSITIVE. (not sure why, that seems stupid. But whatever.) i.e. I should have put ModLoader.addArmor("platinum")
It's really easy to miss this stuff. Even if you know that Java is CaSe SeNsItIvE.
I have several hundred lines of code in my mod(s) for recipes, and I almost died in rage when Risugami changed his method from AddRecipe to addRecipe. XD
And yes, it is VERY easy to miss. I didn't override my generateSurface method to check if GenerateSurface worked anymore, so I spent a whole day trying to figure it out -.-"
<SPOILER>
public static final Item platinumHelmet = new mod_PlatinumArmor(1644,
ModLoader.addArmor("Platinum"), 0)
.setItemName("Platinum");
public static final Item platinumChestPlate = new mod_PlatinumArmor(1645,
ModLoader.addArmor("Platinum"), 1)
.setItemName("Platinum");
public static final Item platinumPants = new mod_PlatinumArmor(1646,
ModLoader.addArmor("Platinum"), 2)
.setItemName("Platinum");
public static final Item platinumBoots = new mod_PlatinumArmor(1647,
ModLoader.addArmor("Platinum"), 3)
.setItemName("Platinum");
</SPOILER>
I tried adding platinum_1.png and platinum_2.png to the mcp/temp/bin/minecraft/armor folder and the bin/minecraft folder. Neither worked. Am I doing something wrong? How does this work? I thought that in Modloader.addArmor("string"), Minecraft looks for string_1.png and string_2.png in one of these folders? Help! Thanks so much
Old mostly dead account. I only check here once in a blue moon.
Haha, alright. Sorry for being unclear, and thanks for the link. One question: When I make new armor textures (the ones that show up on the player, like diamond_1, diamond_2, etc.) where do I put them?
Edit: It says minecraft.jar. WHich minecraft.jar?!
('## ') not ('## ')
Old mostly dead account. I only check here once in a blue moon.
Old mostly dead account. I only check here once in a blue moon.
Well, I put ModLoader.addArmor("Platinum") for all of the armor pieces. Then I added platinum_1 and platinum_2 to /armor/ in mcp/jars/bin/minecraft.jar. Still not working
Old mostly dead account. I only check here once in a blue moon.
Add your own armor type to the list. So it should be,
In fact, everything in Java is
Old mostly dead account. I only check here once in a blue moon.
I have several hundred lines of code in my mod(s) for recipes, and I almost died in rage when Risugami changed his method from AddRecipe to addRecipe. XD
And yes, it is VERY easy to miss. I didn't override my generateSurface method to check if GenerateSurface worked anymore, so I spent a whole day trying to figure it out -.-"