Posted February 14, 20169 yr I want to make an energy meter where you can read the data without opening a GUI. I tried it with the FontRenderer but I can't use it because it only has x and y coordinates and I need a z coordinate too. I didn't really try using the tesselator because I have problems understanding that thing. Is there any other way of doing this?
February 14, 20169 yr http://greyminecraftcoder.blogspot.com.au/2013/08/the-tessellator.html You can draw string onto tess-drawn box in x/y/z. For real examples you could look how entity names are rendered above head. 1.7.10 is no longer supported by forge, you are on your own.
February 14, 20169 yr I don't think there is any easier/nicer way to do it. You most certainly want to use FontRenderer and to do that you need something to draw on - plane. GL11.glTranslatef((float) (x - Minecraft#getRenderManager().viewerPosX), (float) (y - Minecraft#getRenderManager().viewerPosYt), (float) (z - Minecraft#getRenderManager().viewerPosZ)); That's how you get x/y/z. You need few rotations and little translation to fit your plane (block walls) and draw using: Tessellator tess = Tessellator.getInstance(); WorldRenderer wr = tess.getWorldRenderer(); wr.addVertex ... and next, and next, and next. and then draw sting with FontRenderer. 1.7.10 is no longer supported by forge, you are on your own.
February 14, 20169 yr I have a model which extends ModelBase, is it possible to put text ob one of the plane boxes from the model?
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.