Jump to content

[1.7.10] Rendering items on HUD as if they were on the floor


Roboguy99

Recommended Posts

I'd like to render an item on the HUD using the same 3D model as when its on the floor. Currently I am using

 

RenderItem.renderItemIntoGUI(minecraft.fontRenderer, minecraft.getTextureManager(), inventoryContents[i], itemX, itemY);

 

But this only returns the same icon you get in your inventory, and in the case of items which use a custom 3D model (such as Mekanism's cables) or some more special custom 2D icons (Tinker's Construct tools) don't render properly. In the first case, a missing texture icon is displayed, and in the 2nd nothing happens.

 

If there is not a way to do this, is there another approach I can use? I need it to be compatible with mods that use these special methods.

I have no idea what I'm doing.

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.