Posted April 30, 20187 yr Hey, I wanna to move the Hotbar at a custom Position, is there a good way? I started with the GameOverlayEvent and I draw first a Texture. This works... Then I wanna to get the Items from the hotbar, I made that like this: Quote EntityPlayer player = mc.getrenderviewEntity; if(player.inventory.getStackfromSlot(36) != null) { ItemStack hotbar_1 = player.inventory.getStackfromSlot(36); } But this results with a crash... How can I get the ItemStack and how can I draw it? Thank you for help! Edited April 30, 20187 yr by #ÖCT
April 30, 20187 yr Author I allready study that, but it doesen't want to work like the GuiIngame:Hotbar.
April 30, 20187 yr Author 11 minutes ago, #ÖCT said: 27 738 EntityPlayer player = mc.getrenderviewEntity; if(player.inventory.getStackfromSlot(36) != null) { ItemStack hotbar_1 = player.inventory.getStackfromSlot(36); } How i get the ItemStack. Edited April 30, 20187 yr by #ÖCT
April 30, 20187 yr Author Now it works, thank you I had some variables not initzialisated, so the game has crashed... Edited April 30, 20187 yr by #ÖCT
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.