Weather Changer
Customize the current weather.
Integration
How to toggle the mod
public void toggleWeatherChangerExample(Player viewer, boolean value) {
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModWeatherChanger.ENABLED, value));
}Available options
-
ENABLED- Config Key:
enabled - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
RAIN_STRENGTH- Config Key:
rain-strength - Values
- Type:
Float - Default:
1.0F - Minimum:
0.0F - Maximum:
1.0F
- Type:
- Config Key:
-
RAIN_COLOR- Augment the rain/snow color
- Config Key:
rain-color - Values
- Type:
String - Default:
#FFFFFFFF
- Type:
-
THUNDER_STORM- Config Key:
thunder-storm - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
PLAY_THUNDER_SOUND- Config Key:
play-thunder-sound - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
LIGHTNING_FREQ- Config Key:
lightning-freq - Values
- Type:
Float - Default:
1.0F - Minimum:
1.0F - Maximum:
20.0F
- Type:
- Config Key:
-
LIGHTNING_RADIUS_XZ- Config Key:
lightning-radius-x-z - Values
- Type:
Float - Default:
128.0F - Minimum:
8.0F - Maximum:
512.0F
- Type:
- Config Key:
-
LIGHTNING_OFFSET_Y- Config Key:
lightning-offset-y - Values
- Type:
Float - Default:
0.0F - Minimum:
-64.0F - Maximum:
64.0F
- Type:
- Config Key: