Jump to content

Recommended Posts

Posted

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.

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

Posted

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

 

 

Posted

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);
         }

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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