Posted March 22, 201510 yr I know how to code a solid bar GUI to represent a value, but how do i use multiple textures like the vanilla health and armor bars? Is it just a lot of this? if (value > number && value1 < number { render one image else if (value > number && value1 < number { render one image next to other image
March 22, 201510 yr Pretty much yeah, I remember having fun with editing it without events pre-1.6 (I actually overriden whole GuiIngame that time) and rendering was a loop of drawTexturedModalRect methods that were set by player's health and food etc. 1.7.10 is no longer supported by forge, you are on your own.
March 22, 201510 yr https://github.com/MinecraftForge/MinecraftForge/blob/master/src/main/java/net/minecraftforge/client/GuiIngameForge.java#L258 Loops are your friend. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
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.