Jump to content

[1.8] How to get TESR to render in an inventory?


CraftedCart

Recommended Posts

I've set up a block with a TileEntitySpecialRenderer which renders fine when I place it in the world, however I have no idea how to make it render in an inventory (It's currently a block with the missing texture in an inventory). How would I do this?

 

If it's not possible, then how do I make it so that a block renders as a 2D item in an inventory?

 

Thanks :)

Link to comment
Share on other sites

Can you show some of the code that makes this TESR object?

 

I know that for an item you would make it render in the inventory via:

		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(modid + ":" + item.getUnlocalizedName().substring(5), "inventory"));

 

Can't you shove your TESR object in that somewhere? If it's a block use

Item.getItemFromBlock(blockObject)

in place of the 'item' field.

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.