[SOLVED] [1.12.2] Modifying player capabilities for offline players?
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
So then maybe config file is the way to go.
-
i just decided to uninstall it because i already had the latest version and im too lazy to do anything else lol
-
You are missing the AutoRegLib mod.
-
Hi. I am working on a mod and wanted to render some text during the LevelLastRenderEvent. I am trying to draw the Text using Minecraft.getInstance().font.draw(), by passing in the PoseStack from the event, as well as my Text. For some reason I can't get it to actually render anything. I am not quite sure what the x and y coordinates mean, that the method requires, but I tried many different values. I also looked at some other mods and tried to find an example of this actually being done, but I haven't really found something helpful... Are the x and y parameters of the function world coordinates (like block coordinates) or are they relative to something else? Ho do I find the correct coordinates to use? Also, why is it not rendering anything at all for me right now? Here is how I am trying to render the text at the moment. PoseStack matrixStack = event.getPoseStack(); String text = "Collectable XP: "; text += entity.getCollectedXP(); LogHelper.info("Render: " + text); matrixStack.pushPose(); matrixStack.scale(1, 1, 1); instance.font.draw(matrixStack, text, 7, 100, 0xffffff); matrixStack.popPose(); This is inside an eventhandler for the LevelLastRenderEvent and with the LogHelper printing it to the log, I can see that it is definitively getting to this point and executing it. The logging of this is just temporary, so I know that its actually trying to render...
-
Topics
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.