Posted August 10, 20169 yr Hi! When i render an item into gui and it is enchanted, the glint effect appears like that... Here's my code GlStateManager.pushAttrib(); RenderHelper.enableGUIStandardItemLighting(); GlStateManager.disableDepth(); mc.getRenderItem().renderItemAndEffectIntoGUI(hand, 4, 152); GlStateManager.enableDepth(); mc.getRenderItem().renderItemOverlays(font, hand, 4, 153); RenderHelper.disableStandardItemLighting(); GlStateManager.popAttrib(); i've disabled depth before item rendering because i want to render it behind any thing, in this case from chat section. If i don't disable depth, effect looks fine but on top of chat... How can if fix this?, also by other hand, using the same code, when shield is rendered, appears flipped when depth is disabled and fine when enabled... Can anybody help me, please? Thanks.
August 10, 20169 yr Why not look into what renderItemAndEffectIntoGui does and look at other methods VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
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.