grand_gibus Posted November 3, 2017 Posted November 3, 2017 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! Quote
grand_gibus Posted November 3, 2017 Author Posted November 3, 2017 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 Quote
Silly511 Posted November 4, 2017 Posted November 4, 2017 You can use RenderWorldLastEvent#getPartialTicks instead of that horribly hacky thing. Quote
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.