Posted December 26, 201212 yr I am making a mod that has its on custom armour set which works fine in Client. but when starting up a server it throws a http://pastebin.com/1nbV0bgt error. When I try and use proxies like this public static Item MoonHelmet = new MoonArmor(1000, MOON, proxy.addArmor("MOON"), 0).setIconCoord(0,0).setItemName("moonhelm") ; CommonProxy.java(only part of it) public int addArmor(String armor) { return 0; } ClientProxy.java(only part of it) public int addArmor(String armor) { return RenderingRegistry.addNewArmourRendererPrefix(armor); } to make sure it only runs RenderingRegistry.addNewArmourRendererPrefix("MOON") in the client and otherwise returns 0. I get a http://pastebin.com/BhBgpz1J even when running client. When I try and use hardcoded numbers like this public static Item MoonHelmet = new MoonArmor(1000, MOON, 5 , 0).setIconCoord(0,0).setItemName("moonhelm") ; Its all fine on both client and server(actually my armor isn't being rendered) untill i open my inventory when i see that armor is not rendered and i get this error in console. http://pastebin.com/t1qkgEVF Hopefully Someone will know what they are doing as I have searched through hundreds of pages and not found an answer. If you need more of my code to fix then feel free to ask Thanks, MrMishboy
December 27, 201212 yr why u just use "3" instead of proxy.addArmor and then in your armor item file u just use public String getArmorTextureFile() ?
December 27, 201212 yr Author Thanks man that worked brilliantly. I'm just wondering though if this will conflict with other mods. Oh yeah BTW check out the mod at http://www.minecraftforum.net/topic/1614127-the-new-and-improved-moonrock-mod/
December 28, 201212 yr that "3" its the number of diamond armor render so it will not conflict with other mods, also nice mod.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.