Apollo
Developers
Mods
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
  • SCALE

    • Config Key: scale
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.5F
      • Maximum: 1.5F
  • 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
  • EFFECT_NAME

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

    • Config Key: text-shadow
    • Values
      • Type: Boolean
      • Default: true
  • HIDE_MODERN_ICONS

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

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

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

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

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

    • Config Key: duration-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • EXCLUDE_PERM

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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