Apollo
Mod Options
PotionEffects

Potion Effects

Display your currently active potion effects on the HUD.

Integration

How to toggle the mod

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

Available options

  • ENABLED

    • Config Key: enabled
    • Values
      • Type: Boolean
      • Default: true
  • HIDE_AMBIENT_DURATION

    • Config Key: hide-ambient-duration
    • Values
      • Type: Boolean
      • Default: false
  • VANILLA_GROUP_EFFECTS

    • Put the good effects and the bad effects on separate lines
    • Config Key: vanilla-group-effects
    • Values
      • Type: Boolean
      • Default: true
  • VANILLA_MODE_HORIZONTAL

    • Config Key: vanilla-mode-horizontal
    • Values
      • Type: Boolean
      • Default: true
  • VANILLA_MODE_TILES_PER_LINE

    • Config Key: vanilla-mode-tiles-per-line
    • Values
      • Type: Integer
      • Default: 10
      • Minimum: 1
      • Maximum: 10
  • MINIMAL_MODE_HORIZONTAL

    • Config Key: minimal-mode-horizontal
    • Values
      • Type: Boolean
      • Default: false
  • MINIMAL_MODE_TILES_PER_LINE

    • Config Key: minimal-mode-tiles-per-line
    • Values
      • Type: Integer
      • Default: 4
      • Minimum: 1
      • Maximum: 10
  • EFFECT_NAME

    • Config Key: effect-name
    • Values
      • Type: Boolean
      • Default: true
  • EFFECT_DURATION

    • Config Key: effect-duration
    • Values
      • Type: Boolean
      • Default: true
  • EFFECT_AMPLIFIER

    • Config Key: effect-amplifier
    • Values
      • Type: Boolean
      • Default: true
  • SHOW_IN_INVENTORY

    • Config Key: show-in-inventory
    • Values
      • Type: Boolean
      • Default: true
  • SHOW_WHILE_TYPING

    • Config Key: show-while-typing
    • Values
      • Type: Boolean
      • Default: true
  • POTION_BLINK

    • Config Key: potion-blink
    • Values
      • Type: Boolean
      • Default: true
  • POTION_BLINK_ICON

    • With this enabled, the potion effect icon blinks as well
    • Config Key: potion-blink-icon
    • Values
      • Type: Boolean
      • Default: false
  • BLINK_DURATION

    • Config Key: blink-duration
    • Values
      • Type: Integer
      • Default: 10
      • Minimum: 2
      • Maximum: 20
  • VANILLA_BLINK_COLOR

    • Config Key: vanilla-blink-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • UPPERCASE_POTION_NAMES

    • Config Key: uppercase-potion-names
    • Values
      • Type: Boolean
      • Default: false
  • REVERSED_TEXT

    • Config Key: reversed-text
    • Values
      • Type: Boolean
      • Default: false
  • FORMATTED_DURATIONS

    • Config Key: formatted-durations
    • Values
      • Type: Boolean
      • Default: false
  • HIDE_MODERN_ICONS

    • Config Key: hide-modern-icons
    • Values
      • Type: Boolean
      • Default: true
  • HIDE_POTION_STATUS

    • Completely hide the potion effects mod HUD
    • Config Key: hide-potion-status
    • Values
      • Type: Boolean
      • Default: false
  • BACKGROUND

    • Config Key: background
    • Values
      • Type: Boolean
      • Default: true
  • 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
  • TEXT_SHADOW

    • Adds a shadow to text
    • Config Key: text-shadow
    • Values
      • Type: Boolean
      • Default: true
  • COLOR_NAME_BASED_ON_EFFECT

    • Config Key: color-name-based-on-effect
    • Values
      • Type: Boolean
      • Default: false
  • COLOR_INFO_BASED_ON_EFFECT

    • Config Key: color-info-based-on-effect
    • Values
      • Type: Boolean
      • Default: false
  • SHOW_EFFECT_BACKGROUND

    • Config Key: show-effect-background
    • Values
      • Type: Boolean
      • Default: true
  • TEXT_COLOR

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

    • Config Key: info-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • VANILLA_ICON_SCALE

    • Config Key: vanilla-icon-scale
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.5F
      • Maximum: 1.25F
  • VANILLA_TEXT_SCALE

    • Config Key: vanilla-text-scale
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.25F
      • Maximum: 2.0F
  • SCALE

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

    • Config Key: exclude-perm
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_ABSORPTION

    • Config Key: exclude-absorption
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_BLINDNESS

    • Config Key: exclude-blindness
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_FIRE_RES

    • Config Key: exclude-fire-res
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_HASTE

    • Config Key: exclude-haste
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_HEALTH_BOOST

    • Config Key: exclude-health-boost
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_HUNGER

    • Config Key: exclude-hunger
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_INSTANT_DAMAGE

    • Config Key: exclude-instant-damage
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_INSTANT_HEALTH

    • Config Key: exclude-instant-health
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_INVIS

    • Config Key: exclude-invis
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_JUMP_BOOST

    • Config Key: exclude-jump-boost
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_MINING_FATIGUE

    • Config Key: exclude-mining-fatigue
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_NAUSEA

    • Config Key: exclude-nausea
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_NIGHT_VISION

    • Config Key: exclude-night-vision
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_POISON

    • Config Key: exclude-poison
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_REGEN

    • Config Key: exclude-regen
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_RESISTANCE

    • Config Key: exclude-resistance
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_SATURATION

    • Config Key: exclude-saturation
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_SLOWNESS

    • Config Key: exclude-slowness
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_SPEED

    • Config Key: exclude-speed
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_STRENGTH

    • Config Key: exclude-strength
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_WATER_BREATHING

    • Config Key: exclude-water-breathing
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_WEAKNESS

    • Config Key: exclude-weakness
    • Values
      • Type: Boolean
      • Default: false
  • EXCLUDE_WITHER

    • Config Key: exclude-wither
    • Values
      • Type: Boolean
      • Default: false