-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
Ok thank you I made it like this and it works. @SubscribeEvent @OnlyIn(Dist.CLIENT) public static void RenderHUD(final RenderGameOverlayEvent event){ if (isRampage){ int screenColor = 0xfff00000; Minecraft mc = Minecraft.getInstance(); MatrixStack stack = event.getMatrixStack(); stack.pushPose(); int w = (mc.getWindow().getGuiScaledWidth()); int h = (mc.getWindow().getGuiScaledHeight()); float r = (float) (screenColor >> 16 & 255) / 255.0F; float g = (float) (screenColor >> 8 & 255) / 255.0F; float b = (float) (screenColor & 255) / 255.0F; float a = (1/ 100f) * (screenColor >> 24 & 255) / 255F; RenderSystem.disableTexture(); RenderSystem.enableBlend(); RenderSystem.disableAlphaTest(); RenderSystem.blendFuncSeparate(770, 771, 1, 0); RenderSystem.shadeModel(7425); Tessellator tessellator = Tessellator.getInstance(); Matrix4f matrix = stack.last().pose(); BufferBuilder worldrenderer = tessellator.getBuilder(); worldrenderer.begin(7, DefaultVertexFormats.POSITION_COLOR); worldrenderer.vertex(matrix, 0, h, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex(); worldrenderer.vertex(matrix, w, h, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex(); worldrenderer.vertex(matrix, w, 0, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex(); worldrenderer.vertex(matrix, 0, 0, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex(); tessellator.end(); RenderSystem.shadeModel(7424); RenderSystem.disableBlend(); RenderSystem.enableAlphaTest(); RenderSystem.enableTexture(); } }
-
By philomat3001 · Posted
Hello I have a Nitrado server with forge and a modpack. On the server can i not craft this items but in single player does it work and i dont no what to do. -
try to delete all config files if you haven't modify it
-
Hello! I started utilizing the latest MDK 1.18 version, I am receiving errors when initializing my project under this MDK. Yesterday, I was operating on the 1.16.5 MDK just fine. The specific error I am receiving is below. Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.mojang.blaze3d.systems.RenderSystem debug.log latest.log I have deleted my entire project several times, redownloaded both latest and stable MDK for 1.18 and I end up receiving the entire error. I am utilizing the temurin-17 JDK as suggested here. Searching in relation to the error provides some searches along with M1 MacBook issues. It is worth mentioning that I am utilizing an M1 MacBook. Any assistance is appreciated.
-
-
Topics
-
Who's Online (See full list)
Recommended Posts
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.