Apollo
Developers
Mods
Fov

FOV Changer

Allows you to customize your field of view for different potion or speed states.

Integration

How to toggle the mod

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

Available options

  • ENABLED

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

    • Turning this on will prevent your FOV from ever being changed by movement, flying, effects, bow, etc.
    • Config Key: static-f-o-v
    • Values
      • Type: Boolean
      • Default: false
  • DEFAULT_FOV

    • Config Key: default-fov
    • Values
      • Type: Integer
      • Default: 70
      • Minimum: 30
      • Maximum: 110
  • SMOOTH_FOV

    • Smooth transition for the custom dynamic fov values. This does not affect the vanilla FOVs, only custom FOV values.
    • Config Key: smooth-fov
    • Values
      • Type: Boolean
      • Default: true
  • DYNAMIC_BOW

    • Config Key: dynamic-bow
    • Values
      • Type: Boolean
      • Default: true
  • AIMING_MODIFIER

    • Config Key: aiming-modifier
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.0F
      • Maximum: 5.0F
  • AIMING_MIN

    • Config Key: aiming-min
    • Values
      • Type: Float
      • Default: -10.0F
      • Minimum: -200.0F
      • Maximum: 200.0F
  • AIMING_MAX

    • Config Key: aiming-max
    • Values
      • Type: Float
      • Default: 10.0F
      • Minimum: -200.0F
      • Maximum: 200.0F
  • DYNAMIC_EFFECTS

    • Config Key: dynamic-effects
    • Values
      • Type: Boolean
      • Default: true
  • SPEED_FOV

    • Config Key: speed-f-o-v
    • Values
      • Type: Integer
      • Default: 70
      • Minimum: 30
      • Maximum: 110
  • SPEED_TWO_FOV

    • Config Key: speed-two-f-o-v
    • Values
      • Type: Integer
      • Default: 70
      • Minimum: 30
      • Maximum: 110
  • SLOWNESS_FOV

    • Config Key: slowness-f-o-v
    • Values
      • Type: Integer
      • Default: 70
      • Minimum: 30
      • Maximum: 110
  • MOVEMENT_MODIFIER

    • Config Key: movement-modifier
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.0F
      • Maximum: 5.0F
  • MOVEMENT_MIN

    • Config Key: movement-min
    • Values
      • Type: Float
      • Default: -10.0F
      • Minimum: -200.0F
      • Maximum: 200.0F
  • MOVEMENT_MAX

    • Config Key: movement-max
    • Values
      • Type: Float
      • Default: 10.0F
      • Minimum: -200.0F
      • Maximum: 200.0F
  • DYNAMIC_SPRINT

    • Config Key: dynamic-sprint
    • Values
      • Type: Boolean
      • Default: true
  • SPRINTING_FOV

    • Config Key: sprinting-f-o-v
    • Values
      • Type: Integer
      • Default: 70
      • Minimum: 30
      • Maximum: 110
  • SPRINT_MODIFIER

    • Config Key: sprint-modifier
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.0F
      • Maximum: 5.0F
  • SPRINT_MIN

    • Config Key: sprint-min
    • Values
      • Type: Float
      • Default: -10.0F
      • Minimum: -200.0F
      • Maximum: 200.0F
  • SPRINT_MAX

    • Config Key: sprint-max
    • Values
      • Type: Float
      • Default: 10.0F
      • Minimum: -200.0F
      • Maximum: 200.0F
  • DYNAMIC_FLYING

    • Config Key: dynamic-flying
    • Values
      • Type: Boolean
      • Default: true
  • FLYING_FOV

    • Config Key: flying-fov
    • Values
      • Type: Integer
      • Default: 70
      • Minimum: 30
      • Maximum: 110
  • FLYING_MODIFIER

    • Config Key: flying-modifier
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.0F
      • Maximum: 5.0F
  • FLYING_MIN

    • Config Key: flying-min
    • Values
      • Type: Float
      • Default: -10.0F
      • Minimum: -200.0F
      • Maximum: 200.0F
  • FLYING_MAX

    • Config Key: flying-max
    • Values
      • Type: Float
      • Default: 10.0F
      • Minimum: -200.0F
      • Maximum: 200.0F