Posted December 2, 201311 yr Hello all, Recently someone helped me override the vanilla HUD, and its working great, however i got stuck again. I'm recreating the classic vanilla hotbar, except it has quite a few tweaks. Basically, If the item is the current selected item, it renders rotating. Otherwise it renders static. I need help on a couple of things. -How do I decide to render the ItemStack as a item or a block? -How can I render a 3D item (like when an item is dropped ingame) I can render a 3D Block and rotating 3D Block already The difference between stupidity and genius is that genius has its limits. - Albert Einstein
December 3, 201311 yr Hi This link has a fair bit of info on how to render items and blocks. Plus some sample code. http://greyminecraftcoder.blogspot.com.au/p/list-of-topics.html See the Block Rendering and Item Rendering sections. -TGG
December 3, 201311 yr Author Thanks for the reply, I'd seen you tutorials when browsing but obviously didn't look at them close enough. My HUD overlay cancels the onRenderGameOverlay event, and draws my hud instead. Therefore I was confused as to whether or not I could use certain vanilla minecraft rendering functions. Or whether I had to code from scratch. But I think with the help of your tutorials and browsing some more vanilla code especially ItemRenderer and RenderItem, I should start to get an understanding of what I need to do. It's midnight so I'll have a look tomorrow. I'll get back to you if I get stuck. Thanks again The difference between stupidity and genius is that genius has its limits. - Albert Einstein
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.