[SOLVED] Trying to get a Item to right click/plant crops in a area.
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
I found the solution. I'm sharing it in case it helps someone. private static final ResourceLocation image = new ResourceLocation(Main.MODID, "textures/gui/image.png"); @SubscribeEvent public static void onRenderGui(RenderGuiOverlayEvent event) { RenderSystem.disableDepthTest(); RenderSystem.depthMask(false); RenderSystem.enableBlend(); RenderSystem.setShader(GameRenderer::getPositionTexShader); RenderSystem.blendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO); RenderSystem.setShaderColor(1, 1, 1, 1); event.getGuiGraphics().blit(image, 0, 0, 0, 0, 64, 64, 64, 64); RenderSystem.depthMask(true); RenderSystem.defaultBlendFunc(); RenderSystem.enableDepthTest(); RenderSystem.disableBlend(); RenderSystem.setShaderColor(1, 1, 1, 1); }
-
I can also confirm that godlike is quite good, even tho the features are quite limited using the free services. For free services, I can only recommend aternos.org or AxentHost. Aternos is quite straightforward and AxentHost gives more performances, this is all about preferences.
-
By DroidCrafter23 · Posted
Thank you so much @Xoroshio, I don't know why I didn't think of this! It has worked and my problem is finally fixed.
-
-
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.