Class WEAKNESS_POTION

java.lang.Object
net.pottercraft.ollivanders2.potion.O2Potion
net.pottercraft.ollivanders2.potion.WEAKNESS_POTION

public class WEAKNESS_POTION extends O2Potion
Weakness Potion - significantly reduces the drinker's physical strength.

When consumed, this potion applies the WEAKNESS II effect to the player for 5 minutes, drastically reducing their melee damage output and overall physical strength. This is a debilitating potion that makes combat much more difficult and is useful for handicapping opponents or creating challenging gameplay scenarios.

While weakened, players deal significantly less damage with all melee attacks and may struggle with physically demanding tasks. The weakness effect can be strategically used in PvP situations or as an obstacle in puzzles and challenges.

Since:
2.21
  • Constructor Details

    • WEAKNESS_POTION

      public WEAKNESS_POTION(@NotNull @NotNull Ollivanders2 plugin)
      Constructor for Weakness Potion.

      Initializes the potion with its ingredients (Flobberworm Mucus, Valerian Root, Leech Juice, Doxy Venom, and Standard Potion Ingredients), description text, potion color, and the Weakness II potion effect. Sets up the 5-minute duration for the weakness effect.

      Parameters:
      plugin - a callback to the plugin instance
  • Method Details

    • drink

      public void drink(@NotNull @NotNull org.bukkit.entity.Player player)
      Drink the Weakness Potion and suffer reduced strength.

      Applies the WEAKNESS II effect to the player for 5 minutes. This effect significantly reduces the player's melee damage output, making all attacks deal much less damage. While weakened, players will struggle in combat situations and may have difficulty with physically demanding tasks. The weakness effect is temporary and will wear off after the duration expires.

      Specified by:
      drink in class O2Potion
      Parameters:
      player - the player who drank the potion