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

    • Determines if your FOV changes as you move.
    • 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
  • 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
  • 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
  • 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
  • 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