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 use custom code to render items when held in hand or in the world as an entity, as I use spritesheets rather than individual textures.

This works almost perfectly. The only visible issue is that the in-hand items are oriented incorrectly.

Here is what I mean (stick provided for comparison).

My code:

	if (type == type.EQUIPPED || type == type.EQUIPPED_FIRST_PERSON || type == type.ENTITY) {
		if (type == type.EQUIPPED || type == type.EQUIPPED_FIRST_PERSON) {
			GL11.glTranslatef(0, 1.25F, 0.3125F);
			GL11.glRotatef(60, 0, 1, 0);
			GL11.glRotatef(65, 0, 0, 1);
			GL11.glTranslatef(-0.625F, 0F, 0);
			GL11.glScalef(1.5F, 1.5F, 1.5F);
			GL11.glRotatef(-90, 0, 0, 1);
			GL11.glTranslatef(-1, 0, 0);
			GL11.glTranslatef(0.5F, 0, 0.25F);
			GL11.glRotatef(-10, 0, 1, 0);
			GL11.glTranslatef(-0.125F, -0.125F, 0F);
		}
		else {
			GL11.glTranslatef(-0.5F, 0, 0);
		}
		float thick = 0.0625F;
		ItemRenderer.renderItemIn2D(v5, 0.0625F+0.0625F*col, 0.0625F*row, 0.0625F*col, 0.0625F+0.0625F*row, 256, 256, thick);
	}

 

z9vyYl7.png

9thaulY.png

ZIJyuUL.png

cgq1NN4.png

 

I am not going to split these up, but how do I fix this?

It kinda looks like the icon has been rotated slightly

If you edit the image file and rotate it to exactly what the stick is, it might work

looking at the icon from 3rd person perspective, in your hand and on the inv bar at the bottom, the icon is slightly off in it's position, so all I can think is to edit the image and rotate it a bit

  • Author

It kinda looks like the icon has been rotated slightly

If you edit the image file and rotate it to exactly what the stick is, it might work

looking at the icon from 3rd person perspective, in your hand and on the inv bar at the bottom, the icon is slightly off in it's position, so all I can think is to edit the image and rotate it a bit

No, the images are indentical. This has to do with how the icons are rendered. I obviously have the wrong translations, but have no idea what the right ones are.

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.