Posted September 8, 20205 yr I made a dimension and I need help on adding a texture and skybox. Additionally, I would like help on adding celestial bodies like the the moon and sun
September 8, 20205 yr You can use setSkyRenderer() in your custom Dimension class to render a custom sky.
September 8, 20205 yr Author 46 minutes ago, vemerion said: You can use setSkyRenderer() in your custom Dimension class to render a custom sky. What do I need in that method?
September 8, 20205 yr 2 minutes ago, Megaton_216_ said: What do I need in that method? Well, first you would create you own IRenderHandler, which would render the sky. To get an idea of how vanilla does it, you can look at the renderSky() method in the WorldRenderer class. Then you would use setSkyRenderer() in your Dimension class to set the renderer to your custom IRenderHandler.
September 10, 20205 yr Author On 9/8/2020 at 2:34 PM, vemerion said: Well, first you would create you own IRenderHandler, which would render the sky. To get an idea of how vanilla does it, you can look at the renderSky() method in the WorldRenderer class. Then you would use setSkyRenderer() in your Dimension class to set the renderer to your custom IRenderHandler. Wait how does renderSky() help with creating my own IRenderHandler? I'm sorry I just don't get that.
September 11, 20205 yr 7 hours ago, Megaton_216_ said: Yeah lol but how? I am not sure exactly what you are asking. My suggestion was that you look at the code in renderSky() to get an understanding of how vanilla Minecraft does the sky rendering. You can then use this newfound knowledge to implement your own custom sky rendering.
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.