Posted November 3, 20178 yr Hello, so I'd like to know how, considering I have world coordinates, render a cube/shape in the world. Do I have to make an event handler for the RenderTick event? What do I have to write to render the cube? Do I have to extend a Render class? I have no idea how to do it, thanks in advance!
November 3, 20178 yr Author Ok so I figured it out by myself, luckily enough. So if someone needs to know, you need to subscribe to the RenderWorldLastEvent and put your render code there. The render coordinates are the player coordinates (Minecraft.getMinecraft().player) - the absolute coordinate where you want the element to render. If you need the partialTicks value, idk if its good but i subscribed the TickEvent.RenderTickEvent and got the partial tick value from there, its maybe trash but it works
November 4, 20178 yr You can use RenderWorldLastEvent#getPartialTicks instead of that horribly hacky thing.
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.