Apollo
Mod Options
AttackIndicator

Attack Indicator

Allows you to customize the crosshair attack indicator

Integration

How to toggle the mod

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

Available options

  • ENABLED

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

    • Config Key: horizontal
    • Values
      • Type: Boolean
      • Default: true
  • SCALE

    • Config Key: scale
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.25F
      • Maximum: 5.0F
  • SHOW_IN_HUD_EDITOR

    • Config Key: show-in-hud-editor
    • Values
      • Type: Boolean
      • Default: true
  • ALWAYS_SHOW

    • Config Key: always-show
    • Values
      • Type: Boolean
      • Default: true
  • RENDER_ICON

    • Config Key: render-icon
    • Values
      • Type: Boolean
      • Default: true
  • BACKGROUND

    • Config Key: background
    • Values
      • Type: Boolean
      • Default: false
  • BACKGROUND_COLOR

    • Config Key: background-color
    • Values
      • Type: String
      • Default: #6F000000
  • 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
  • BORDER_COLOR

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

    • Config Key: vanilla-blending
    • Values
      • Type: Boolean
      • Default: false
  • DYNAMIC_COLOR

    • Config Key: dynamic-color
    • Values
      • Type: Boolean
      • Default: false
  • COLOR_LOW

    • Config Key: color-low
    • Values
      • Type: String
      • Default: #FFFF0000
  • COLOR_HIGH

    • Config Key: color-high
    • Values
      • Type: String
      • Default: #FF00FF00
  • COLOR

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

    • Config Key: swords
    • Values
      • Type: Boolean
      • Default: true
  • AXES

    • Config Key: axes
    • Values
      • Type: Boolean
      • Default: true
  • PICKAXES

    • Config Key: pickaxes
    • Values
      • Type: Boolean
      • Default: true
  • SHOVEL

    • Config Key: shovel
    • Values
      • Type: Boolean
      • Default: true
  • NON_WEAPONS

    • Show the generic attack swing cooldown when switching items (includes hand)
    • Config Key: non-weapons
    • Values
      • Type: Boolean
      • Default: false
  • ATTACK_INDICATOR_PLAY_SOUND_VANILLA

    • Play a ding when the weapon cooldowns are done
    • Config Key: attack-indicator-play-sound-vanilla
    • Values
      • Type: Boolean
      • Default: false
  • SLEEP

    • Config Key: sleep
    • Values
      • Type: Boolean
      • Default: false
  • BLOCK_BREAKING

    • Config Key: block-breaking
    • Values
      • Type: Boolean
      • Default: false
  • ENDER_PEARL

    • Config Key: ender-pearl
    • Values
      • Type: Boolean
      • Default: false
  • CHORUS_FRUIT

    • Config Key: chorus-fruit
    • Values
      • Type: Boolean
      • Default: false
  • BOWS

    • Config Key: bows
    • Values
      • Type: Boolean
      • Default: false
  • SHIELDS

    • Config Key: shields
    • Values
      • Type: Boolean
      • Default: false
  • CONSUMABLES

    • Foods & Potions
    • Config Key: consumables
    • Values
      • Type: Boolean
      • Default: false
  • STORAGE

    • Show capacity of storage items (bundles, shulker boxes)
    • Config Key: storage
    • Values
      • Type: Boolean
      • Default: false
  • ATTACK_INDICATOR_PLAY_SOUND_CUSTOM

    • Play a ding when the cooldowns/indicators are done (excluding Sleep Progress, Block Breaking, Consumables and Storage Items)
    • Config Key: attack-indicator-play-sound-custom
    • Values
      • Type: Boolean
      • Default: false