Posted August 16, 201312 yr I'm trying to add a texture to my custom pig. But it still has the default pig skin. http://pastebin.com/pZESXt5e Kain
August 16, 201312 yr with my mob, I've got my textures like this: private static final ResourceLocation field_110833_a = new ResourceLocation("remula", "textures/entities/mobglog.png"); //Other stuff protected ResourceLocation func_110832_a(EntityGlog entity) { return field_110833_a; } Note that in my method I'm calling EntityGlog, not Entity. Glog is the name of my mob, so try that. http://s13.postimg.org/z9mlly2av/siglogo.png[/img] My mods (Links coming soon) Cities | Roads | Remula | SilvaniaMod | MoreStats
August 16, 201312 yr Do it like this; public static final ResourceLocation field_110920_a = new ResourceLocation("simcraft", "textures/entity/oceaanFish.png"); protected ResourceLocation func_110919_a(EntityOceaanFish par1EntityOceaanFish) { return field_110920_a; } protected ResourceLocation func_110775_a(Entity par1Entity) { return this.func_110919_a((EntityOceaanFish)par1Entity); } just add your own data and entity names in
August 16, 201312 yr Still looks like a normal pig :I http://pastebin.com/xdsCXSmq If that still looks like a normal pig your problem is elsewhere, because it the rendering part was wrong there's no way it could use the default pig skin and use that, so somewhere inside your other class files you extended something that should maybe not have been extended, or didn't register the entity properly or even forgot to change mc names to your rendering or model names when you did your model, a lot for time we would maybe use mc code as our base and then forget to change something and we end up with something we didn't want. For it to render the pg skin it has to be linked somewhere in your code also spotted maybe a problem change the following code public RenderHog (ModelHog modelTutorial, float f) { super(modelTutorial, f); model = ((ModelHog)mainModel); } to public RenderHog (ModelBase var1, float f) { super(var1, f); this.model = ((ModelHog)var1); }
August 16, 201312 yr Author My entity extended EntityPig if it helps. :I http://pastebin.com/BKhKHXLn Kain
August 17, 201312 yr Yes, it was a stupid question so I won't ask if you are calling the registerRenderers method and registering the entity. In your previous code pastes, the path to the texture is spelled "entities" instead of "entity". The standard directory is usually "entity" so I am wondering if you have the png file in the wrong place.
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.