Posted December 28, 201410 yr Is there a way to change how much light is coming from the sky (Sun/Moon). I'd like to make full moons brighter than new in a sort of oscillating pattern.
December 28, 201410 yr Hi The world.getStarBrightness() and world.getSunBrightness() methods look promising. You might be able to implement this through the corresponding WorldProvider methods, for example by DimensionManager.unregisterProviderType and then DimensionManager.registerProviderType for the surface world with your new customised WorldProvider. Otherwise ASM+Reflection is probably necessary. -TGG
December 28, 201410 yr Hi The world.getStarBrightness() and world.getSunBrightness() methods look promising. You might be able to implement this through the corresponding WorldProvider methods, for example by DimensionManager.unregisterProviderType and then DimensionManager.registerProviderType for the surface world with your new customised WorldProvider. Otherwise ASM+Reflection is probably necessary. -TGG No, TGG, That is not enough. For World#getSunBrightness is client-only, Modifying it only changes. So, here is what you have to do to change skylight: 1. Make your new customized WorldProvider. 2. Override getSunBrightnessFactor, getSunBrightness, and getStarBrightness. - getSunBrightnessFactor is for skylight calculation on Server&Client. Affects the light value of whole world. - getSunBrightness is for sky rendering on Client on day. 3. Modify the methods with your needs. 4. As TGG said, replace overworld provider with yours. first, unregister the overworld provider using DimensionManager.unregisterProviderType then DimensionManager.registerProviderType for the surface world with your new customised WorldProvider 5. Done. * These thing can be possible thanks to my PR. :-) I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
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.