Just like the title says, I'm trying to update my mod to 1.0.0 but they changed how you add armor to the game with modloader and I have tried several ways to do it but none of them have worked so if you know how to that would be great.
There are no extra pieces in the universe. Everyone is here because he or she has a place to fill, and every piece must fit itself into the big jigsaw puzzle.
-Deepak Chopra
with the new release of 1.2 ModLoader has changed the normal ModLoader.AddArmor to ModLoader.addArmor. but i still get the render problem and cant see the actual armour when wearing it although i have made the texture for it. i guess we need to be told were to put the path directory for where we have to put the textures :/
Add and enum armor material called obsidian and setup its properties. (so just mod enumarmormaterial class)
Go into render player class and add obsidian at the end of the list of materials for armor
Make your armor code somthing like this:
new ItemArmor(ID, EnumArmorMaterial.OBSIDIAN, 5, (0-3)).setItemName("itemname");
// the 5 is for the render player class if you haven't entered any other armors then obsidian should be the 5 one on the list (starting from 0). 0-3 is the part of the armor(0 = helmet, 1 = chestplate, 2 = leggings, 3 = boots). you will need to make a obsidian_1 and obsidian_2 and put them in the armor folder for rendering purposes.
Add and enum armor material called obsidian and setup its properties. (so just mod enumarmormaterial class)
Go into render player class and add obsidian at the end of the list of materials for armor
Make your armor code somthing like this:
new ItemArmor(ID, EnumArmorMaterial.OBSIDIAN, 5, (0-3)).setItemName("itemname");
// the 5 is for the render player class if you haven't entered any other armors then obsidian should be the 5 one on the list (starting from 0). 0-3 is the part of the armor(0 = helmet, 1 = chestplate, 2 = leggings, 3 = boots). you will need to make a obsidian_1 and obsidian_2 and put them in the armor folder for rendering purposes.
Thanks for bumping up a post that is over 10 months old and says it is solved. Please try not to do it again.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Thanks,
jamolnng :wub.gif:
Follow @jamolnng
The best way to contact me is via twitter.
Follow @jamolnng
The best way to contact me is via twitter.
I make Minecraft Videos, So subscribe if you like it and ask me if you want me to do an adventure map!
I make Minecraft Videos, So subscribe if you like it and ask me if you want me to do an adventure map!
i have the exact same problem :sad.gif:
when i extend ItemArmor, super(i) screws up. plz help!
PS: you don't need to make a new Item!
There are no extra pieces in the universe. Everyone is here because he or she has a place to fill, and every piece must fit itself into the big jigsaw puzzle.
-Deepak Chopra
// the 5 is for the render player class if you haven't entered any other armors then obsidian should be the 5 one on the list (starting from 0). 0-3 is the part of the armor(0 = helmet, 1 = chestplate, 2 = leggings, 3 = boots). you will need to make a obsidian_1 and obsidian_2 and put them in the armor folder for rendering purposes.
Thanks for bumping up a post that is over 10 months old and says it is solved. Please try not to do it again.
together they are powerful beyond imagination."
Supporter of EthosLab