Jump to content

[1.8] How I can rendering Custom Chest


SteveKunG

Recommended Posts

I don't think I can help, although I question why you're using BlockRendererDispatcher and not something like what worked fro me (for a much simpler block):

 

renderItem.getItemModelMesher().register(Item.getItemFromBlock(brickBlock), 0, new ModelResourceLocation(Testmod01.MODID + ":" + ((BlockBrick)brickBlock).getName(), "brickBlock"));

    Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(brickBlock),0, new ModelResourceLocation(Testmod01.MODID+":"+ ((BlockBrick)brickBlock).getName(), "inventory"));

   

 

But can you share your custom chest code for me to study?  I'm trying to learn to make a shelf and do not know where to start.  PM, email, or post?

 

UPDATE: ok the code I pasted above totally doesn't work for the chest-like item I'm trying to create because I have extended the BlockContainer class instead of the Block class and I'm trying to figure that out now.

hw developer in a sw world

Link to comment
Share on other sites

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.