Alright so I've started making a mod for Minecraft. It allows you to turn obsidian into "dust" then turn the dust into an ingot and with the ingot you can make tools. I've got all that code made and it is working, the only thing I need help with is making my own custom EnumArmorMaterial. My mod is ModLoader compatible so I would have to make a new EnumArmorMod class but if I do that I'd have to change many other classes. I would really appreciate it if someone could help me out with this!
I had the same problem. That's not something modloader can do. Switch to minecraft forge. Any code written for modloader should work for forge.
ModLoader can add armor just fine(Although with Forge you don't have to write enums, which is nice). is a pretty good tutorial for making armor with ModLoader. Although it is for 1.2.x, it should work just fine in 1.3.1 and above.
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.
ModLoader can add armor just fine(Although with Forge you don't have to write enums, which is nice). is a pretty good tutorial for making armor with ModLoader. Although it is for 1.2.x, it should work just fine in 1.3.1 and above.
// 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.