Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

Ok, is it also possible to do that without a tesselator?

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.