Jump to content

[Unsolved] Custom block model invisible and black/purple square when hold[1.6.2]


Recommended Posts

Posted

In my mod, I have a custom modelled block. The first problem is when I place it down in-game it's invisible. You can see the bounding-boxes, but you can't see the block itself. The second problem is when i hold it in my hand it's a black/purple squared icon, instead of my custom modelled block. I have a class that implements IItemRenderer and I registered it correctly (I think) and I have a class that extends TileEntitySpecialRenderer which (I think) registered correctly.

 

BlockStreetlight.java:

 

  Reveal hidden contents

 

 

ClientProxy.java:

 

  Reveal hidden contents

 

 

I don't have anything in my CommonProxy and TileEntityStreetlight(I'll be adding stuff later on) class

 

ModelStreetlight.java (I'm using the new TechneModelLoader):

 

  Reveal hidden contents

 

 

ItemStreetlightRenderer.java:

 

  Reveal hidden contents

 

 

TileEntityStreetlightRenderer.java:

 

  Reveal hidden contents

 

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/

Posted

Sorry we seem to be unable to mind read you're code at the moment, so it's hard to tell what you did wrong

  Quote

If you guys dont get it.. then well ya.. try harder...

Posted
  On 7/11/2013 at 3:33 PM, Mazetar said:

Sorry we seem to be unable to mind read you're code at the moment, so it's hard to tell what you did wrong

I was in the middle of making the thread and I hit post accidently... But it's there now  :)

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/

Posted
  On 7/11/2013 at 4:24 PM, larsgerrits said:

Than I'll be making a new model class...

That doesn't work either... I got the same outcome... In another mod it works well, but that's for mc 1.5.2.

 

EDIT: I just took a look at the eclipse console and it sais:

 

  Reveal hidden contents

 

Which looks like to me that it has to do something with the writeToNBT metho. And it sais it's a bug... But there isn't anything in the TileEntityStreetlight class (yet)!!!

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/

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.