Jump to content

Adding a New Entity - Invisible? Texture Error?


Recommended Posts

Posted

So, I'm basically trying to [for starters] make a mod to add a Ball of Yarn that cats will play with. I haven't added any code for the cats to actually play with it, mostly because I can't figure out how to get it to render at all. In fact, I can't even get the icon for the item used to spawn it to render; it returns to the default iron helmet icon. Any help would be much appreciated.

 

ModCatAdditions.java:

 

  Reveal hidden contents

 

 

ItemYarnBall.java:

 

  Reveal hidden contents

 

 

EntityYarnBall.java:

 

  Reveal hidden contents

 

 

RenderYarnBall.java:

 

  Reveal hidden contents

 

 

ModelYarnBall.java:

 

  Reveal hidden contents

 

 

CommonProxy.java:

 

  Reveal hidden contents

 

 

ClientProxy.java:

 

  Reveal hidden contents

 

 

Images:

 

  Reveal hidden contents

 

↑It makes sense if you don't think about it.↑

 

Creepers only explode because they want to hug you, but when they reach you, they realize they have no arms, and then explode with anger.

  • 3 weeks later...
Posted

In the item.java u add an extra 's' at the method name:

 

public String getTextureFiles()
{
  return CommonProxy.ITEMS_PNG;
}

 

Try:

 

public String getTextureFile()
{
  return CommonProxy.ITEMS_PNG;
}

 

Also you didn't call the right image files in the commonProxy.java. I'm sure this will fix the "texture not loading" problem... at least for forge 6.3.0 (mc 1.4.4).

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.