Jump to content

MrMishboy

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by MrMishboy

  1. Sorry guys I was being a noob. I just looked into the Item class and it shows that it adds 256
  2. My config file is being created and all properly but the Item ids are not being used and block ids are. Moonrock.cfg # Configuration file # Generated on 29/12/12 14:49 #################### # block #################### block { I:"MoonRock ID"=1000 } #################### # item #################### item { I:"MoonAxe ID"=4005 I:"MoonBoots ID"=4003 I:"MoonChest ID"=4001 I:"MoonHelm ID"=4000 I:"MoonHoe ID"=4007 I:"MoonLegs ID"=4002 I:"MoonPickaxe ID"=4004 I:"MoonShovel ID"=4008 I:"MoonSword ID"=4006 } pre init public void Preload(FMLPreInitializationEvent event){ Configuration config = new Configuration(event.getSuggestedConfigurationFile()); config.load(); MoonRockID = config.getBlock("MoonRock ID", 1000).getInt(); MoonHelmetID = config.getItem("MoonHelm ID", 4000).getInt(); MoonChestID = config.getItem("MoonChest ID", 4001).getInt(); MoonLeggingsID = config.getItem("MoonLegs ID", 4002).getInt(); MoonBootsID = config.getItem("MoonBoots ID", 4003).getInt(); MoonPickaxeID = config.getItem("MoonPickaxe ID", 4004).getInt(); MoonAxeID = config.getItem("MoonAxe ID", 4005).getInt(); MoonSwordID = config.getItem("MoonSword ID", 4006).getInt(); MoonHoeID = config.getItem("MoonHoe ID", 4007).getInt(); MoonShovelID = config.getItem("MoonShovel ID", 4008).getInt(); config.save(); } ModBlocks(only part) Moonrock1 = (new MoonBlock(Moonrock.MoonRockID, 1, Material.rock)).setHardness(3.0F).setLightOpacity(3).setStepSound(Block.soundGlassFootstep).setBlockName("Moonrock").setCreativeTab(CreativeTabs.tabBlock); ModItems(only part) //Armour MoonHelmet = new MoonArmor(Moonrock.MoonHelmetID, MOON, 3, 0).setIconCoord(0,0).setItemName("moonhelm") ; MoonChest = new MoonArmor(Moonrock.MoonChestID, MOON, 3, 1).setIconCoord(1,0).setItemName("moonchest"); MoonLeggings = new MoonArmor(Moonrock.MoonLeggingsID, MOON, 3, 2).setIconCoord(2,0).setItemName("moonleg"); MoonBoots = new MoonArmor(Moonrock.MoonBootsID, MOON, 3, 3).setIconCoord(3,0).setItemName("moonboots"); //tools MoonPickaxe = new MoonPickaxe(Moonrock.MoonPickaxeID, MOONT).setIconCoord(0, 1).setItemName("MoonPick"); MoonAxe = new MoonAxe(Moonrock.MoonAxeID, MOONT).setIconCoord(0, 2).setItemName("Moonaxe"); MoonSword = new MoonSword(Moonrock.MoonSwordID, MOONT).setIconCoord(0, 3).setItemName("Moonsword"); MoonHoe = new MoonHoe(Moonrock.MoonHoeID, MOONT).setIconCoord(0, 4).setItemName("Moonhoe"); MoonShovel = new MoonShovel(Moonrock.MoonShovelID, MOONT).setIconCoord(0, 5).setItemName("Moonshovel"); Thanks, Mrmishboy
  3. 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/
  4. 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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.