Posted June 8, 201312 yr 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); } I am not going to split these up, but how do I fix this? Follow my mod(s) here: http://www.minecraftforum.net/topic/1969694-
June 8, 201312 yr 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
June 9, 201312 yr 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. Follow my mod(s) here: http://www.minecraftforum.net/topic/1969694-
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.