Apollo
Developers
Mods
Momentum

Momentum Mod

Shows your current velocity

Integration

How to toggle the mod

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

Available options

  • ENABLED

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

    • Config Key: scale
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.5F
      • Maximum: 1.5F
  • TEXT_SHADOW

    • Config Key: text-shadow
    • Values
      • Type: Boolean
      • Default: true
  • BACKGROUND

    • Config Key: background
    • Values
      • Type: Boolean
      • Default: true
  • STATIC_BACKGROUND_WIDTH

    • If this is disabled the background will change size with the text.
    • Config Key: static-background-width
    • Values
      • Type: Boolean
      • Default: true
  • BACKGROUND_WIDTH

    • Config Key: background-width
    • Values
      • Type: Integer
      • Default: 56
      • Minimum: 50
      • Maximum: 62
  • BACKGROUND_HEIGHT

    • Config Key: background-height
    • Values
      • Type: Integer
      • Default: 18
      • Minimum: 10
      • Maximum: 22
  • BRACKETS

    • Config Key: brackets
    • Values
      • Type: Boolean
      • Default: true
  • BORDER

    • Config Key: border
    • Values
      • Type: Boolean
      • Default: false
  • BORDER_THICKNESS

    • Config Key: border-thickness
    • Values
      • Type: Float
      • Default: 0.5F
      • Minimum: 0.5F
      • Maximum: 3.0F
  • TEXT_COLOR

    • Config Key: text-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • BACKGROUND_COLOR

    • Config Key: background-color
    • Values
      • Type: String
      • Default: #6F000000
  • BORDER_COLOR

    • Config Key: border-color
    • Values
      • Type: String
      • Default: #9F000000
  • USE_GROUND_SPEED

    • If enabled then Y velocity is not used in the final speed.
    • Config Key: use-ground-speed
    • Values
      • Type: Boolean
      • Default: false
  • USE_AVERAGE_VELOCITY

    • If this is disabled then instant velocity is used
    • Config Key: use-average-velocity
    • Values
      • Type: Boolean
      • Default: false
  • AVERAGING_PERIOD

    • Determines how many times a second velocity is calculated. Lower values will show a smoother velocity
    • Config Key: averaging-period
    • Values
      • Type: Integer
      • Default: 8
      • Minimum: 1
      • Maximum: 50