Apollo
Developers
Mods
Fog

Fog Customizer

Allows you to adjust the strength of fog for various fog types

Integration

How to toggle the mod

public void toggleFogCustomizerExample(Player viewer, boolean value) {
    Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
    apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModFog.ENABLED, value));
}

Available options

  • ENABLED

    • Config Key: enabled
    • Values
      • Type: Boolean
      • Default: false
  • WATER_FOG_DENSITY

    • Config Key: water-fog-density
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.0F
      • Maximum: 1.8F
  • RENDER_DISTANCE_FOG_DENSITY

    • Config Key: render-distance-fog-density
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.0F
      • Maximum: 1.95F
  • RENDER_DISTANCE_FOG_COLOR_TOGGLE

    • Config Key: render-distance-fog-color-toggle
    • Values
      • Type: Boolean
      • Default: false
  • RENDER_DISTANCE_FOG_COLOR

    • Config Key: render-distance-fog-color
    • Values
      • Type: String
      • Default: #C0D8FF