Recompiling an old mod and got a simple error that basically says I'm calling this incorrectly and just wondering if anyone knows the new syntax?
Error
src\minecraft\net\minecraft\src\mod_Obsidian.java:45: cannot find symbol
symbol : constructor ItemArmor(int,int,int,int)
location: class net.minecraft.src.ItemArmor
obsidianHelmet = (new ItemArmor(30001, 3, ModLoader.AddArmor("ob
sidian"), 0)).setItemName("obsidianHelmet");
^
That was the correct syntax for like MC Beta 1.8 or something so just need the new way to declare the same values as above, thanks.
Recompiling an old mod and got a simple error that basically says I'm calling this incorrectly and just wondering if anyone knows the new syntax?
Error
That was the correct syntax for like MC Beta 1.8 or something so just need the new way to declare the same values as above, thanks.
try this:
obsidianHelmet = (new ItemArmor(3001, EnumArmorMaterial.EMERALD, ModLoader.AddArmor("ob
sidian"), 0)).setItemName("obsidianHelmet");
1. The 'EnumArmorMaterial.EMERALD' is the strength, EMERALD makes it the strength of diamond, if you want a custom material you need to edit EnumToolMaterial.java
2. Changed 30001 to 3001 just in case, make it something less than 10000, shouldn't matter too much.
Error
That was the correct syntax for like MC Beta 1.8 or something so just need the new way to declare the same values as above, thanks.
try this:
1. The 'EnumArmorMaterial.EMERALD' is the strength, EMERALD makes it the strength of diamond, if you want a custom material you need to edit EnumToolMaterial.java
2. Changed 30001 to 3001 just in case, make it something less than 10000, shouldn't matter too much.
Agree, and there are plenty of tutorials in the Internet, you only need to use "Google" :wink.gif: