Apollo
Developers
Mods
Crosshair

Crosshair

Replace the default Minecraft crosshair with a customizable crosshair.

Integration

How to toggle the mod

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

Available options

  • ENABLED

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

    • Config Key: crosshair-thickness
    • Values
      • Type: Integer
      • Default: 1
      • Minimum: 1
      • Maximum: 5
  • CROSSHAIR_SIZE

    • Config Key: crosshair-size
    • Values
      • Type: Integer
      • Default: 4
      • Minimum: 0
      • Maximum: 8
  • CROSSHAIR_GAP

    • Config Key: crosshair-gap
    • Values
      • Type: Integer
      • Default: 0
      • Minimum: 0
      • Maximum: 8
  • CROSSHAIR_DOT

    • Config Key: crosshair-dot
    • Values
      • Type: Boolean
      • Default: true
  • CROSSHAIR_OUTLINE

    • Config Key: crosshair-outline
    • Values
      • Type: Boolean
      • Default: false
  • OUTLINE_THICKNESS

    • Config Key: outline-thickness
    • Values
      • Type: Float
      • Default: 0.5F
      • Minimum: 0.0F
      • Maximum: 1.0F
  • OUTLINE_COLOR

    • Config Key: outline-color
    • Values
      • Type: String
      • Default: #88000000
  • CUSTOM_SCALE

    • Config Key: custom-scale
    • Values
      • Type: Boolean
      • Default: false
  • COLOR

    • Config Key: color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • FRIENDLY_COLOR

    • Config Key: friendly-color
    • Values
      • Type: String
      • Default: #FF33FF33
  • ENEMY_COLOR

    • Config Key: enemy-color
    • Values
      • Type: String
      • Default: #FFFF3333