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
- Type:
- Config Key:
-
HORIZONTAL- Config Key:
horizontal - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
SCALE- Config Key:
scale - Values
- Type:
Float - Default:
1.0F - Minimum:
0.25F - Maximum:
5.0F
- Type:
- Config Key:
-
SHOW_IN_HUD_EDITOR- Config Key:
show-in-hud-editor - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
ALWAYS_SHOW- Config Key:
always-show - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
RENDER_ICON- Config Key:
render-icon - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
BACKGROUND- Config Key:
background - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
BACKGROUND_COLOR- Config Key:
background-color - Values
- Type:
String - Default:
#6F000000
- Type:
- Config Key:
-
BORDER- Config Key:
border - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
BORDER_THICKNESS- Config Key:
border-thickness - Values
- Type:
Float - Default:
0.5F - Minimum:
0.5F - Maximum:
3.0F
- Type:
- Config Key:
-
BORDER_COLOR- Config Key:
border-color - Values
- Type:
String - Default:
#9F000000
- Type:
- Config Key:
-
VANILLA_BLENDING- Config Key:
vanilla-blending - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
DYNAMIC_COLOR- Config Key:
dynamic-color - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
COLOR_LOW- Config Key:
color-low - Values
- Type:
String - Default:
#FFFF0000
- Type:
- Config Key:
-
COLOR_HIGH- Config Key:
color-high - Values
- Type:
String - Default:
#FF00FF00
- Type:
- Config Key:
-
COLOR- Config Key:
color - Values
- Type:
String - Default:
#FFFFFFFF
- Type:
- Config Key:
-
SWORDS- Config Key:
swords - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
AXES- Config Key:
axes - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
PICKAXES- Config Key:
pickaxes - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
SHOVEL- Config Key:
shovel - Values
- Type:
Boolean - Default:
true
- Type:
- Config Key:
-
NON_WEAPONS- Show the generic attack swing cooldown when switching items (includes hand)
- Config Key:
non-weapons - Values
- Type:
Boolean - Default:
false
- Type:
-
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
- Type:
-
SLEEP- Config Key:
sleep - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
BLOCK_BREAKING- Config Key:
block-breaking - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
ENDER_PEARL- Config Key:
ender-pearl - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
CHORUS_FRUIT- Config Key:
chorus-fruit - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
BOWS- Config Key:
bows - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
SHIELDS- Config Key:
shields - Values
- Type:
Boolean - Default:
false
- Type:
- Config Key:
-
CONSUMABLES- Foods & Potions
- Config Key:
consumables - Values
- Type:
Boolean - Default:
false
- Type:
-
STORAGE- Show capacity of storage items (bundles, shulker boxes)
- Config Key:
storage - Values
- Type:
Boolean - Default:
false
- Type:
-
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
- Type: