Apollo
Developers
Mods
Shields

Shields

Some QoL features for Minecraft shields

Integration

How to toggle the mod

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

Available options

  • ENABLED

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

    • Config Key: enable-shield-colors
    • Values
      • Type: Boolean
      • Default: true
  • SHIELD_ACTIVE_COLOR

    • Config Key: shield-active-color
    • Values
      • Type: String
      • Default: #FF00FF00
  • SHIELD_INACTIVE_COLOR

    • Config Key: shield-inactive-color
    • Values
      • Type: String
      • Default: #FFFF0000
  • ANIMATE_COLOR_TRANSITION

    • Config Key: animate-color-transition
    • Values
      • Type: Boolean
      • Default: false
  • SHIELD_INACTIVE_SOUND

    • Always play a sound whenever a player's shield goes inactive.
    • Config Key: shield-inactive-sound
    • Values
      • Type: Boolean
      • Default: true
  • SHIELD_USE_SOUND

    • Always play a sound whenever a player's shield is damaged by any source.
    • Config Key: shield-use-sound
    • Values
      • Type: Boolean
      • Default: true
  • IGNORE_5TICKS

    • Ignore the 5 tick deactivation period when a shield is hit with any item other than the axe.
    • Config Key: ignore5-ticks
    • Values
      • Type: Boolean
      • Default: true
  • BETTER_BLOCKING

    • Fix the bug where shields don't show as blocking sometimes, even though the player is blocking.
    • Config Key: better-blocking
    • Values
      • Type: Boolean
      • Default: true