
[Enchancement] Custom gamma per-biome
clubpetey opened this issue ยท 1 comments
In addition to the fog setting, using the set() function to change the gamma level on a per-biome basis would create some cool lighting effects, especially when set very low. Here some quick code I used in another project that changes gamma per dimension.
@SubscribeEvent
public void onClientTick(ClientTickEvent event) {
int dim = Minecraft.getMinecraft().thePlayer.dimension;
if (config.setLightLevel) {
float lightLevel = config.getGamma(dim); // try 0.7F
Minecraft.getMinecraft().gameSettings.gammaSetting = lightLevel;
}
}