Posted May 13, 201312 yr Alright, I want to get the textures for my mob... How would I do this and where would I place the file? Thanks STOP CRUCIFYING NEW MODDERS!!!!
May 13, 201312 yr Don't be sorry for the threads, these forums are for getting help. More description would be useful though. I assume you've made the mob in techne, and it's working in-game (minus textures) I'm still stuck in the dark days of 1.4.7, but with that in the EntityYourMob file, under super have: this.texture = "/path/to/your/file.png"; However, 1.5.x changed texturing, so it's probably different now. Doesn't hurt to try though! http://s13.postimg.org/z9mlly2av/siglogo.png[/img] My mods (Links coming soon) Cities | Roads | Remula | SilvaniaMod | MoreStats
May 13, 201312 yr However, 1.5.x changed texturing, so it's probably different now. Doesn't hurt to try though! That's only blocks and items. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
May 14, 201312 yr Author Don't be sorry for the threads, these forums are for getting help. More description would be useful though. I assume you've made the mob in techne, and it's working in-game (minus textures) I'm still stuck in the dark days of 1.4.7, but with that in the EntityYourMob file, under super have: this.texture = "/path/to/your/file.png"; However, 1.5.x changed texturing, so it's probably different now. Doesn't hurt to try though! I'm not sure how texturing in 1.4.7 is. I only started coding in 1.5 so the code would be Is that correct or am I completely off there? this.texture = "MCP NEW/src/minecraft/mob/ModelPenguin" STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr The path should lead to the place your file is when it's inside mod .zip/.jar. For that you should have a resource folder somewhere with a file structure like that: resource/mods/your_mod_id/textures/mobs/ (for your monsters). And then have the following inside the path variable: /mods/your_mod_id/textures/mobs/penguin.png or something similiar. And as far as I see, you are using a development setup that's pretty complicated to update (in comparison to other setups). I recommend you having a look at pahimar's video upon that topic and his Let's Mod-Series in general (Here's the link to the dev environment setup: )
May 14, 201312 yr Author Still doesnt work Here is my line of code this.texture = "/mods/ParallelWorlds/textures/mobs/Penguin.png"; That is what I am using to get the texture and it isnt working EDIT: The textures are on but are now extremely bugged.... This is the texture map Any help here? STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr Are you using the default model for the entity? Becaues then you have to stick to the texture format of the default minecraft skin.
May 14, 201312 yr Author Are you using the default model for the entity? Becaues then you have to stick to the texture format of the default minecraft skin. I have created the model in Techne at 64x32 STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr Is your model class extending ModelBiped or ModelBase? It should be ModelBase for a custom model and did you have this line of code in your ClientProxy: RenderingRegistry.registerEntityRenderingHandler(YourEntity.class, new RenderYourEntity(new ModelYourEntity(), 0.3F)); Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
May 14, 201312 yr Are you using the default model for the entity? Becaues then you have to stick to the texture format of the default minecraft skin. I have created the model in Techne at 64x32 and did you actually export the model from techne into a java file, fix the errors, made an animation for this and register your Model class with the RenderingRegistry? Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
May 14, 201312 yr Author Is your model class extending ModelBiped or ModelBase? It should be ModelBase for a custom model and did you have this line of code in your ClientProxy: RenderingRegistry.registerEntityRenderingHandler(YourEntity.class, new RenderYourEntity(new ModelYourEntity(), 0.3F)); Yes it is extending ModelBase and I have that line of code STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr Author Are you using the default model for the entity? Becaues then you have to stick to the texture format of the default minecraft skin. I have created the model in Techne at 64x32 and did you actually export the model from techne into a java file, fix the errors, made an animation for this and register your Model class with the RenderingRegistry? Yes STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr Author I have retextured it and moved the texture map to stop overlaps Still no luck STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr Author This is the code for my render and model Render: package assassinhero.parallelworlds.entitypenguin; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; public class RenderPenguin extends RenderLiving{ protected ModelPenguin model; public RenderPenguin(ModelPenguin par1ModelBase, float par2) { super(par1ModelBase, par2); this.model = ((ModelPenguin)mainModel); } public RenderPenguin(ModelBase par1ModelBase, float par2) { super(par1ModelBase, par2); } public void renderPenguin(EntityPenguin par1EntityPenguin, double par2, double par4, double par6, float par8, float par9) { super.doRenderLiving(par1EntityPenguin, par2, par4, par6, par8, par9); } public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) { this.renderPenguin((EntityPenguin)par1EntityLiving, par2, par4, par6, par8, par9); } public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) { this.renderPenguin((EntityPenguin)par1Entity, par2, par4, par6, par8, par9); } } Model: package assassinhero.parallelworlds.entitypenguin; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelPenguin extends ModelBase { ModelRenderer FootRight; ModelRenderer FootLeft; ModelRenderer LegRight; ModelRenderer LegLeft; ModelRenderer Torso; ModelRenderer ArmRight; ModelRenderer ArmLeft; ModelRenderer Head; ModelRenderer UpperBeak; ModelRenderer LowerBeak; public ModelPenguin() { textureWidth = 64; textureHeight = 32; FootRight = new ModelRenderer(this, 50, 23); FootRight.addBox(0F, 0F, 0F, 3, 1, 2); FootRight.setRotationPoint(0F, 23F, 2F); FootRight.setTextureSize(64, 32); FootRight.mirror = true; setRotation(FootRight, 0F, 0F, 0F); FootLeft = new ModelRenderer(this, 50, 18); FootLeft.addBox(0F, 0F, 0F, 3, 1, 2); FootLeft.setRotationPoint(0F, 23F, -4F); FootLeft.setTextureSize(64, 32); FootLeft.mirror = true; setRotation(FootLeft, 0F, 0F, 0F); LegRight = new ModelRenderer(this, 33, 24); LegRight.addBox(0F, 0F, 0F, 1, 4, 2); LegRight.setRotationPoint(0F, 19F, 2F); LegRight.setTextureSize(64, 32); LegRight.mirror = true; setRotation(LegRight, 0F, 0F, 0F); LegLeft = new ModelRenderer(this, 22, 24); LegLeft.addBox(0F, 0F, 0F, 1, 4, 2); LegLeft.setRotationPoint(0F, 19F, -4F); LegLeft.setTextureSize(64, 32); LegLeft.mirror = true; setRotation(LegLeft, 0F, 0F, 0F); Torso.mirror = true; Torso = new ModelRenderer(this, 28, 3); Torso.addBox(0F, 1F, 0F, 2, 9, ; Torso.setRotationPoint(0F, 9F, -4F); Torso.setTextureSize(64, 32); Torso.mirror = true; setRotation(Torso, 0F, 0F, 0F); Torso.mirror = false; ArmRight = new ModelRenderer(this, 52, 6); ArmRight.addBox(0F, 0F, 0F, 2, 5, 2); ArmRight.setRotationPoint(0F, 10F, 4F); ArmRight.setTextureSize(64, 32); ArmRight.mirror = true; setRotation(ArmRight, 0F, 0F, 0F); ArmLeft = new ModelRenderer(this, 19, 7); ArmLeft.addBox(0F, 0F, 0F, 2, 5, 2); ArmLeft.setRotationPoint(0F, 10F, -6F); ArmLeft.setTextureSize(64, 32); ArmLeft.mirror = true; setRotation(ArmLeft, 0F, 0F, 0F); Head = new ModelRenderer(this, 1, 1); Head.addBox(0F, 0F, 0F, 2, 5, 6); Head.setRotationPoint(0F, 5F, -3F); Head.setTextureSize(64, 32); Head.mirror = true; setRotation(Head, 0F, 0F, 0F); UpperBeak = new ModelRenderer(this, 5, 17); UpperBeak.addBox(0F, 0F, 0F, 2, 1, 4); UpperBeak.setRotationPoint(2F, 7F, -2F); UpperBeak.setTextureSize(64, 32); UpperBeak.mirror = true; setRotation(UpperBeak, 0F, 0F, 0F); LowerBeak = new ModelRenderer(this, 5, 25); LowerBeak.addBox(0F, 0F, 0F, 1, 1, 4); LowerBeak.setRotationPoint(2F, 8F, -2F); LowerBeak.setTextureSize(64, 32); LowerBeak.mirror = true; setRotation(LowerBeak, 0F, 0F, 0F); } public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7) { super.render(par1Entity, par2, par3, par4, par5, par6, par7); setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity); FootRight.render(par7); FootLeft.render(par7); LegRight.render(par7); LegLeft.render(par7); Torso.render(par7); ArmRight.render(par7); ArmLeft.render(par7); Head.render(par7); UpperBeak.render(par7); LowerBeak.render(par7); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity) { super.setRotationAngles(par1, par2, par3, par4, par5, par6, par7Entity); } } STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr I have retextured it and moved the texture map to stop overlaps Still no luck Just a hunch: Make a small, meaningless, change to the source code (e.g. add a debug statement, like System.out.println("Hello")) and run it again. When I was messing with GUIs, I noticed that I had to make a change to the code for the program to recompile with the new texture. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
May 14, 201312 yr Author I have retextured it and moved the texture map to stop overlaps Still no luck Just a hunch: Make a small, meaningless, change to the source code (e.g. add a debug statement, like System.out.println("Hello")) and run it again. When I was messing with GUIs, I noticed that I had to make a change to the code for the program to recompile with the new texture. I was checking through the console and found this... 2013-05-14 19:08:24 [iNFO] [sTDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Class.getField(Unknown Source) 2013-05-14 19:08:24 [iNFO] [sTDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732) 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) IS this anything to do with the bug? STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr I was checking through the console and found this... 2013-05-14 19:08:24 [iNFO] [sTDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Class.getField(Unknown Source) 2013-05-14 19:08:24 [iNFO] [sTDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732) 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) IS this anything to do with the bug? Pretty sure not. None of it refers to your code and I think I get that error to. That error is deep in the texture stitching code that turns all of our block and item PNGs into a single spritesheet (which doesn't effect mob textures, nor any texture directly referenced like you're doing). Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
May 14, 201312 yr Author I was checking through the console and found this... 2013-05-14 19:08:24 [iNFO] [sTDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Class.getField(Unknown Source) 2013-05-14 19:08:24 [iNFO] [sTDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732) 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) IS this anything to do with the bug? Pretty sure not. None of it refers to your code and I think I get that error to. That error is deep in the texture stitching code that turns all of our block and item PNGs into a single spritesheet (which doesn't effect mob textures, nor any texture directly referenced like you're doing). I really don't see the issue with the code or anything STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr I was checking through the console and found this... 2013-05-14 19:08:24 [iNFO] [sTDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Class.getField(Unknown Source) 2013-05-14 19:08:24 [iNFO] [sTDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732) 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) IS this anything to do with the bug? Pretty sure not. None of it refers to your code and I think I get that error to. That error is deep in the texture stitching code that turns all of our block and item PNGs into a single spritesheet (which doesn't effect mob textures, nor any texture directly referenced like you're doing). I really don't see the issue with the code or anything That error is just because you don't have the latest LWJGL, you don't need to worry about that. Can I see your proxy classes and your main mod class? Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
May 14, 201312 yr Author I was checking through the console and found this... 2013-05-14 19:08:24 [iNFO] [sTDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Class.getField(Unknown Source) 2013-05-14 19:08:24 [iNFO] [sTDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732) 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) IS this anything to do with the bug? Pretty sure not. None of it refers to your code and I think I get that error to. That error is deep in the texture stitching code that turns all of our block and item PNGs into a single spritesheet (which doesn't effect mob textures, nor any texture directly referenced like you're doing). I really don't see the issue with the code or anything That error is just because you don't have the latest LWJGL, you don't need to worry about that. Can I see your proxy classes and your main mod class? package assassinhero.parallelworlds; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityEggInfo; import net.minecraft.entity.EntityList; import net.minecraft.entity.EnumCreatureType; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.WeightedRandomChestContent; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.ChestGenHooks; import net.minecraftforge.common.EnumHelper; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.living.LivingDropsEvent; import assassinhero.parallelworlds.client.ClientPacketHandler; import assassinhero.parallelworlds.common.CommonProxy; import assassinhero.parallelworlds.common.ServerPacketHandler; import assassinhero.parallelworlds.common.blocks.BlockArcticiteBlock; import assassinhero.parallelworlds.common.blocks.BlockArcticitePortalBlock; import assassinhero.parallelworlds.common.blocks.BlockAscariteBlock; import assassinhero.parallelworlds.common.blocks.BlockHellStoneBlock; import assassinhero.parallelworlds.common.blocks.BlockHelliteBlock; import assassinhero.parallelworlds.common.blocks.BlockNightOre; import assassinhero.parallelworlds.common.blocks.BlockNightiumBlock; import assassinhero.parallelworlds.common.blocks.BlockSapphireBlock; import assassinhero.parallelworlds.common.blocks.BlockTimeOre; import assassinhero.parallelworlds.common.blocks.BlockTiminiumBlock; import assassinhero.parallelworlds.common.items.CookedLambChopFood; import assassinhero.parallelworlds.common.items.ItemHellShardItem; import assassinhero.parallelworlds.common.items.ItemHellSoulsItem; import assassinhero.parallelworlds.common.items.ItemIceGemItem; import assassinhero.parallelworlds.common.items.ItemIceShardItem; import assassinhero.parallelworlds.common.items.ItemNightGemItem; import assassinhero.parallelworlds.common.items.ItemPureSoulsItem; import assassinhero.parallelworlds.common.items.ItemPurityGemItem; import assassinhero.parallelworlds.common.items.ItemSapphireItem; import assassinhero.parallelworlds.common.items.ItemTimeGemItem; import assassinhero.parallelworlds.common.items.ItemTimeShardItem; import assassinhero.parallelworlds.common.items.RawLambChopFood; import assassinhero.parallelworlds.common.items.TimeAxe; import assassinhero.parallelworlds.common.items.TimeBlade; import assassinhero.parallelworlds.common.items.TimeHoe; import assassinhero.parallelworlds.entitypenguin.EntityPenguin; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @NetworkMod(clientSideRequired=true,serverSideRequired=false, clientPacketHandlerSpec = @SidedPacketHandler(channels = {"ParallelWorlds" }, packetHandler = ClientPacketHandler.class), serverPacketHandlerSpec = @SidedPacketHandler(channels = {"ParallelWorlds"}, packetHandler = ServerPacketHandler.class)) @Mod(modid="AssassinHero_ParallelWorlds",name="ParallelWorlds",version="1.0") public class ParallelWorldsMain { @Instance("ParallelWorlds") public static ParallelWorldsMain instance = new ParallelWorldsMain(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.ClientProxy", serverSide = "assassinhero.parallelworlds.common.CommonProxy") public static CommonProxy proxy; static int startEntityId = 300; public static Block ArcticitePortal; public static Item IceShard; public static Block NightOre; public static Block Nightium; public static Item NightGem; public static Block TimeOre; public static Block Timinium; public static Item TimeGem; public static Block Arcticite; public static Block Hellite; public static Item HellShard; public static Block Ascarite; public static Item HellSoul; public static Item PureSoul; public static Item PurityGem; public static Block SapphireBlock; public static Item RawLambChop; public static Item TimePickaxe; public static Item Sapphire; public static Item IceGem; public static Item TimeBlade; public static Item TimeShard; public static Item CookedLambChop; public static Item TimeShovel; public static Item TimeAxe; public static Item TimeHoe; public static Block HellStone; @cpw.mods.fml.common.Mod.PreInit public void PreInit(FMLPreInitializationEvent event){ Nightium = new BlockNightiumBlock(3000, Material.iron).setUnlocalizedName("Nightium"); NightOre = new BlockNightOre(3001, Material.rock).setUnlocalizedName("Night Ore"); TimeOre = new BlockTimeOre(3003, Material.rock).setUnlocalizedName("Time Ore"); Timinium = new BlockTiminiumBlock(3004, Material.iron).setUnlocalizedName("Timinium"); Arcticite = new BlockArcticiteBlock(3005, Material.iron).setUnlocalizedName("Arcticite"); Hellite = new BlockHelliteBlock(3006, Material.iron).setUnlocalizedName("Hellite"); Ascarite = new BlockAscariteBlock(3007, Material.iron).setUnlocalizedName("Ascarite"); SapphireBlock = new BlockSapphireBlock(3008, Material.iron).setUnlocalizedName("Sapphire Block"); HellStone = new BlockHellStoneBlock(3009, Material.iron).setUnlocalizedName("HellStone"); NightGem = new ItemNightGemItem(5000).setUnlocalizedName("Night Gem"); TimeGem = new ItemTimeGemItem(5001).setUnlocalizedName("Time Gem"); HellShard = new ItemHellShardItem(5002).setUnlocalizedName("Hell Shard"); HellSoul = new ItemHellSoulsItem(5003).setUnlocalizedName("Hell Soul"); PureSoul = new ItemPureSoulsItem(5004).setUnlocalizedName("Pure Soul"); PurityGem = new ItemPurityGemItem(5005).setUnlocalizedName("Purity Gem"); RawLambChop = new RawLambChopFood(5006, 3, 4.0F, true).setUnlocalizedName("Raw Lamb Chop"); Sapphire = new ItemSapphireItem(5007).setUnlocalizedName("Sapphire"); IceGem = new ItemIceGemItem(5008).setUnlocalizedName("IceGem"); TimeShard = new ItemTimeShardItem(5009).setUnlocalizedName("Time Shard"); CookedLambChop = new CookedLambChopFood(5010, 8, 8.0F, true).setUnlocalizedName("Cooked Lamb Chop"); IceShard = new ItemIceShardItem(5011).setUnlocalizedName("Ice Shard"); ArcticitePortal = new BlockArcticitePortalBlock(5012, Material.portal).setUnlocalizedName("Arcticite Portal"); TimeBlade = new TimeBlade(15000, EnumToolMaterial.TIME).setUnlocalizedName("Time Blade"); TimePickaxe = new assassinhero.parallelworlds.common.items.TimePickaxe(15001, EnumToolMaterial.TIME).setUnlocalizedName("Time Pickaxe"); TimeShovel = new assassinhero.parallelworlds.common.items.TimeShovel(15002, EnumToolMaterial.TIME).setUnlocalizedName("Time Shovel"); TimeAxe = new TimeAxe(15003, EnumToolMaterial.TIME).setUnlocalizedName("Time Axe"); TimeHoe = new TimeHoe(15004, EnumToolMaterial.TIME).setUnlocalizedName("Time Hoe"); } @Init public void Init(FMLInitializationEvent event){ proxy.registerBlocks(); proxy.registerItems(); NetworkRegistry.instance().registerGuiHandler(this, proxy); craftingRecipes(); smeltingRecipes(); BlockHarvestLevel(); MinecraftForge(); EnumToolMaterial(); ChestGenHook(); EntityRegistryPenguin(); } public void craftingRecipes(){ GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Nightium, 1), "XX", "XX", Character.valueOf('X'), ParallelWorldsMain.NightGem); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Timinium, 1), "XX", "XX", Character.valueOf('X'), ParallelWorldsMain.TimeGem); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Arcticite, 1), "XX", "XX", Character.valueOf('X'), Block.blockSnow); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.HellStone, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.HellShard); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.SapphireBlock, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.Sapphire); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Ascarite, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.PureSoul); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimePickaxe, 1), "XXX", " A ", " A ", Character.valueOf('X'), ParallelWorldsMain.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimeGem, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.TimeShard); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimeShovel, 1), " X ", " A ", " A ", Character.valueOf('X'), ParallelWorldsMain.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimeAxe, 1), "XX ", "XA ", " A ", Character.valueOf('X'), ParallelWorldsMain.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimeHoe, 1), "XX ", " A ", " A ", Character.valueOf('X'), ParallelWorldsMain.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.IceGem, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.IceShard); GameRegistry.addShapelessRecipe(new ItemStack(ParallelWorldsMain.PureSoul, 1), new Object[]{ParallelWorldsMain.HellSoul, ParallelWorldsMain.PurityGem}); } public void smeltingRecipes(){ GameRegistry.addSmelting(NightOre.blockID, new ItemStack(NightGem, 1), 0.5F); GameRegistry.addSmelting(TimeOre.blockID, new ItemStack(TimeShard, 1), 0.5F); } public void BlockHarvestLevel(){ MinecraftForge.setBlockHarvestLevel(Nightium, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(NightOre, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(TimeOre, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Timinium, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Arcticite, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Hellite, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Ascarite, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(SapphireBlock, "pickaxe", 2); } public void MinecraftForge(){ } public void EnumToolMaterial(){ EnumToolMaterial toolTime = EnumHelper.addToolMaterial("Time", 2, 2000, 10.0F, 8, 15); EnumToolMaterial toolNight = EnumHelper.addToolMaterial("NIGHT", 2, 500, 9.0F, 20, 10); } public void ChestGenHook(){ ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(ParallelWorldsMain.NightGem), 1, 5, 50)); ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH).addItem(new WeightedRandomChestContent(new ItemStack(ParallelWorldsMain.NightGem), 1, 5, 50)); ChestGenHooks.getInfo(ChestGenHooks.MINESHAFT_CORRIDOR).addItem(new WeightedRandomChestContent(new ItemStack(ParallelWorldsMain.NightGem), 1, 1, 50)); ChestGenHooks.getInfo(ChestGenHooks.PYRAMID_DESERT_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(ParallelWorldsMain.NightGem), 1, 3, 50)); } public void EntityRegistryPenguin(){ cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityPenguin.class, "Penguin", 1, this, 80, 3, true); cpw.mods.fml.common.registry.EntityRegistry.addSpawn(EntityPenguin.class, 10, 1, 3, EnumCreatureType.monster, BiomeGenBase.icePlains); LanguageRegistry.instance().addStringLocalization("entity.AssassinHero_ParallelWorlds.ParallelWorlds.name", "Penguin"); registerEntityEgg(EntityPenguin.class, 0x000000, 0xFFA500); } public static int getUniqueEntityId(){ do{ startEntityId++; } while(EntityList.getStringFromID(startEntityId)!= null); return startEntityId; } public static void registerEntityEgg(Class <? extends Entity> entity, int primaryColor, int secondaryColor){ int id = getUniqueEntityId(); EntityList.IDtoClassMapping.put(id, entity); EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor)); } } That's my main mod Here is the common proxy package assassinhero.parallelworlds.common; import assassinhero.parallelworlds.ParallelWorldsMain; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import cpw.mods.fml.common.network.IGuiHandler; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; public class CommonProxy implements IGuiHandler{ public void registerRenderInformation() { } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { return null; } public void registerTiles(){ } public void registerBlocks(){ GameRegistry.registerBlock(ParallelWorldsMain.Nightium, "Nightium"); LanguageRegistry.addName(ParallelWorldsMain.Nightium, "Nightium"); GameRegistry.registerBlock(ParallelWorldsMain.NightOre, "Night Ore"); LanguageRegistry.addName(ParallelWorldsMain.NightOre, "Night Ore"); GameRegistry.registerBlock(ParallelWorldsMain.TimeOre, "Time Ore"); LanguageRegistry.addName(ParallelWorldsMain.TimeOre, "Time Ore"); GameRegistry.registerBlock(ParallelWorldsMain.Timinium, "Timinium"); LanguageRegistry.addName(ParallelWorldsMain.Timinium, "Timinium"); GameRegistry.registerBlock(ParallelWorldsMain.Arcticite, "Arcticite"); LanguageRegistry.addName(ParallelWorldsMain.Arcticite, "Arcticite"); GameRegistry.registerBlock(ParallelWorldsMain.Hellite, "Hellite"); LanguageRegistry.addName(ParallelWorldsMain.Hellite, "Hellite"); GameRegistry.registerBlock(ParallelWorldsMain.Ascarite, "Ascarite"); LanguageRegistry.addName(ParallelWorldsMain.Ascarite, "Ascarite"); GameRegistry.registerBlock(ParallelWorldsMain.SapphireBlock, "Sapphire Block"); LanguageRegistry.addName(ParallelWorldsMain.SapphireBlock, "Sapphire Block"); GameRegistry.registerBlock(ParallelWorldsMain.HellStone, "Hell Stone"); LanguageRegistry.addName(ParallelWorldsMain.HellStone, "Hell Stone"); GameRegistry.registerBlock(ParallelWorldsMain.ArcticitePortal, "Arcticite Portal"); LanguageRegistry.addName(ParallelWorldsMain.ArcticitePortal, "Arcticite Portal"); } public void registerItems(){ GameRegistry.registerItem(ParallelWorldsMain.NightGem, "Night Gem"); LanguageRegistry.addName(ParallelWorldsMain.NightGem, "Night Gem"); GameRegistry.registerItem(ParallelWorldsMain.TimeGem, "Time Gem"); LanguageRegistry.addName(ParallelWorldsMain.TimeGem, "Time Gem"); GameRegistry.registerItem(ParallelWorldsMain.HellShard, "Hell Shard"); LanguageRegistry.addName(ParallelWorldsMain.HellShard, "Hell Shard"); GameRegistry.registerItem(ParallelWorldsMain.HellSoul, "Hell Soul"); LanguageRegistry.addName(ParallelWorldsMain.HellSoul, "Hell Soul"); GameRegistry.registerItem(ParallelWorldsMain.PureSoul, "Pure Soul"); LanguageRegistry.addName(ParallelWorldsMain.PureSoul, "Pure Soul"); GameRegistry.registerItem(ParallelWorldsMain.PurityGem, "Purity Gem"); LanguageRegistry.addName(ParallelWorldsMain.PurityGem, "Purity Gem"); GameRegistry.registerItem(ParallelWorldsMain.RawLambChop, "Raw Lamb Chop"); LanguageRegistry.addName(ParallelWorldsMain.RawLambChop, "Raw Lamb Chop"); GameRegistry.registerItem(ParallelWorldsMain.Sapphire, "Sapphire"); LanguageRegistry.addName(ParallelWorldsMain.Sapphire, "Sapphire"); GameRegistry.registerItem(ParallelWorldsMain.IceGem, "Ice Gem"); LanguageRegistry.addName(ParallelWorldsMain.IceGem, "Ice Gem"); GameRegistry.registerItem(ParallelWorldsMain.TimePickaxe, "Time Pickaxe"); LanguageRegistry.addName(ParallelWorldsMain.TimePickaxe, "Time Pickaxe"); GameRegistry.registerItem(ParallelWorldsMain.TimeBlade, "Time Blade"); LanguageRegistry.addName(ParallelWorldsMain.TimeBlade, "Time Blade"); GameRegistry.registerItem(ParallelWorldsMain.TimeShard, "Time Shard"); LanguageRegistry.addName(ParallelWorldsMain.TimeShard, "Time Shard"); GameRegistry.registerItem(ParallelWorldsMain.CookedLambChop, "Cooked Lamb Chop"); LanguageRegistry.addName(ParallelWorldsMain.CookedLambChop, "Cooked Lamb Chop"); GameRegistry.registerItem(ParallelWorldsMain.TimeShovel, "Time Shovel"); LanguageRegistry.addName(ParallelWorldsMain.TimeShovel, "Time Shovel"); GameRegistry.registerItem(ParallelWorldsMain.TimeAxe, "Time Axe"); LanguageRegistry.addName(ParallelWorldsMain.TimeAxe, "TimeAxe"); GameRegistry.registerItem(ParallelWorldsMain.TimeHoe, "Time Hoe"); LanguageRegistry.addName(ParallelWorldsMain.TimeHoe, "Time Hoe"); GameRegistry.registerItem(ParallelWorldsMain.IceShard, "Ice Shard"); LanguageRegistry.addName(ParallelWorldsMain.IceShard, "Ice Shard"); } } Client Proxy package assassinhero.parallelworlds.client; import assassinhero.parallelworlds.common.CommonProxy; import assassinhero.parallelworlds.entitypenguin.EntityPenguin; import assassinhero.parallelworlds.entitypenguin.ModelPenguin; import assassinhero.parallelworlds.entitypenguin.RenderPenguin; import cpw.mods.fml.client.registry.RenderingRegistry; public class ClientProxy extends CommonProxy { public void registerRenderInformation(){ RenderingRegistry.registerEntityRenderingHandler(EntityPenguin.class, new RenderPenguin(new ModelPenguin(), 0.3F)); } } STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr I see that you don't register your model to your entity: [*]your common proxy should have the same registerRenderInformation as the Client Proxy, just with an empty method body [*]you must call your registerRenderInformation in your @Init method through your proxy field Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
May 14, 201312 yr Author I see that you don't register your model to your entity: [*]your common proxy should have the same registerRenderInformation as the Client Proxy, just with an empty method body [*]you must call your registerRenderInformation in your @Init method through your proxy field 013-05-14 21:34:20 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue 2013-05-14 21:34:20 [sEVERE] [ForgeModLoader] mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized AssassinHero_ParallelWorlds{1.0} [ParallelWorlds] (bin) Unloaded->Constructed->Pre-initialized->Errored 2013-05-14 21:34:20 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-05-14 21:34:20 [sEVERE] [ForgeModLoader] Caught exception from AssassinHero_ParallelWorlds java.lang.NullPointerException at assassinhero.parallelworlds.entitypenguin.ModelPenguin.<init>(ModelPenguin.java:49) at assassinhero.parallelworlds.client.ClientProxy.registerRenderInformation(ClientProxy.java:10) at assassinhero.parallelworlds.ParallelWorldsMain.Init(ParallelWorldsMain.java:135) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) at net.minecraft.client.Minecraft.startGame(Minecraft.java:447) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:732) at java.lang.Thread.run(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] java.lang.NullPointerException 2013-05-14 21:34:20 [iNFO] [sTDERR] at assassinhero.parallelworlds.entitypenguin.ModelPenguin.<init>(ModelPenguin.java:49) 2013-05-14 21:34:20 [iNFO] [sTDERR] at assassinhero.parallelworlds.client.ClientProxy.registerRenderInformation(ClientProxy.java:10) 2013-05-14 21:34:20 [iNFO] [sTDERR] at assassinhero.parallelworlds.ParallelWorldsMain.Init(ParallelWorldsMain.java:135) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) 2013-05-14 21:34:20 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:447) 2013-05-14 21:34:20 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-14 21:34:20 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) I now have error STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr I see that you don't register your model to your entity: [*]your common proxy should have the same registerRenderInformation as the Client Proxy, just with an empty method body [*]you must call your registerRenderInformation in your @Init method through your proxy field 013-05-14 21:34:20 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue 2013-05-14 21:34:20 [sEVERE] [ForgeModLoader] mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized AssassinHero_ParallelWorlds{1.0} [ParallelWorlds] (bin) Unloaded->Constructed->Pre-initialized->Errored 2013-05-14 21:34:20 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-05-14 21:34:20 [sEVERE] [ForgeModLoader] Caught exception from AssassinHero_ParallelWorlds java.lang.NullPointerException at assassinhero.parallelworlds.entitypenguin.ModelPenguin.<init>(ModelPenguin.java:49) at assassinhero.parallelworlds.client.ClientProxy.registerRenderInformation(ClientProxy.java:10) at assassinhero.parallelworlds.ParallelWorldsMain.Init(ParallelWorldsMain.java:135) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) at net.minecraft.client.Minecraft.startGame(Minecraft.java:447) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:732) at java.lang.Thread.run(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] java.lang.NullPointerException 2013-05-14 21:34:20 [iNFO] [sTDERR] at assassinhero.parallelworlds.entitypenguin.ModelPenguin.<init>(ModelPenguin.java:49) 2013-05-14 21:34:20 [iNFO] [sTDERR] at assassinhero.parallelworlds.client.ClientProxy.registerRenderInformation(ClientProxy.java:10) 2013-05-14 21:34:20 [iNFO] [sTDERR] at assassinhero.parallelworlds.ParallelWorldsMain.Init(ParallelWorldsMain.java:135) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) 2013-05-14 21:34:20 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:447) 2013-05-14 21:34:20 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-14 21:34:20 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) I now have error Torso.mirror = true; Torso = new ModelRenderer(this, 28, 3); There's something wrong with this. You see it? Also read your logs, it tells you where it is erroring and which kind of error: java.lang.NullPointerException at assassinhero.parallelworlds.entitypenguin.ModelPenguin.<init>(ModelPenguin.java:49) NullPointerException in class assassinhero.parallelworlds.entitypenguin.ModelPenguin in your constructor (<init>) at line 49 (ModelPenguin.java:49) Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
May 14, 201312 yr Author Torso.mirror = true; Torso = new ModelRenderer(this, 28, 3); There's something wrong with this. You see it? Also read your logs, it tells you where it is erroring and which kind of error: [/quote] I dont see. Is it because Torso.mirror is true? STOP CRUCIFYING NEW MODDERS!!!!
May 14, 201312 yr Author I see that you don't register your model to your entity: [*]your common proxy should have the same registerRenderInformation as the Client Proxy, just with an empty method body [*]you must call your registerRenderInformation in your @Init method through your proxy field 013-05-14 21:34:20 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue 2013-05-14 21:34:20 [sEVERE] [ForgeModLoader] mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized AssassinHero_ParallelWorlds{1.0} [ParallelWorlds] (bin) Unloaded->Constructed->Pre-initialized->Errored 2013-05-14 21:34:20 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-05-14 21:34:20 [sEVERE] [ForgeModLoader] Caught exception from AssassinHero_ParallelWorlds java.lang.NullPointerException at assassinhero.parallelworlds.entitypenguin.ModelPenguin.<init>(ModelPenguin.java:49) at assassinhero.parallelworlds.client.ClientProxy.registerRenderInformation(ClientProxy.java:10) at assassinhero.parallelworlds.ParallelWorldsMain.Init(ParallelWorldsMain.java:135) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) at net.minecraft.client.Minecraft.startGame(Minecraft.java:447) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:732) at java.lang.Thread.run(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] java.lang.NullPointerException 2013-05-14 21:34:20 [iNFO] [sTDERR] at assassinhero.parallelworlds.entitypenguin.ModelPenguin.<init>(ModelPenguin.java:49) 2013-05-14 21:34:20 [iNFO] [sTDERR] at assassinhero.parallelworlds.client.ClientProxy.registerRenderInformation(ClientProxy.java:10) 2013-05-14 21:34:20 [iNFO] [sTDERR] at assassinhero.parallelworlds.ParallelWorldsMain.Init(ParallelWorldsMain.java:135) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-05-14 21:34:20 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690) 2013-05-14 21:34:20 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) 2013-05-14 21:34:20 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:447) 2013-05-14 21:34:20 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-14 21:34:20 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732) 2013-05-14 21:34:20 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) I now have error Torso.mirror = true; Torso = new ModelRenderer(this, 28, 3); There's something wrong with this. You see it? Also read your logs, it tells you where it is erroring and which kind of error: java.lang.NullPointerException at assassinhero.parallelworlds.entitypenguin.ModelPenguin.<init>(ModelPenguin.java:49) NullPointerException in class assassinhero.parallelworlds.entitypenguin.ModelPenguin in your constructor (<init>) at line 49 (ModelPenguin.java:49) I have fixed the crash but the texture for the entity still bugged STOP CRUCIFYING NEW MODDERS!!!!
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.