Posted August 16, 20178 yr EDIT: I solved how to make a custom renderer for the Item, but I need to render the selected item over it. I can't figure out how to do such a thing, any help is appreciated! Thanks in advance. OLD: Hey there! So my problem is that I don't quite understand how to dynamically render items using things such as IModel or IBakedModel. The task is pretty simple, I just want to render my item, then in a layer above, render the currently selected item from within the item's Inventory. Essentially, a backpack that allows you to scroll to a specific item, using shift-scroll, to place down blocks. But, for better or for worse, I can't quite get my head around how to use the classes to render the item in such a way. I assume that it wouldn't be to hard and I'm just over looking something. Thanks for any help in advance! Edited August 16, 20178 yr by mysticalherobine
August 16, 20178 yr Author Bump, edited main post for a new question of sorts, but still related enough to not make a new one.
August 17, 20178 yr Use RenderItem#getItemModelWithOverrides to get the IBakedModel for an ItemStack. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.