promotional bannermobile promotional banner

Only So Many Potions

Limits active potion buff stacking to configurable Potion Slots and adds independent cooldowns for potion healing, optional drinking, and Wizardry mana flasks, with item-slot sweeps and a configurable HUD.
Standalone Effect Panel shows 2/2 occupied Potion Slots with compact minute timers while a third drinkable potion is blocked with action-bar feedback.

Standalone Effect Panel shows 2/2 occupied Potion Slots with compact minute timers while a third drinkable potion is blocked with action-bar feedback.

Description

Limits active potion buff stacking to configurable Potion Slots and adds independent cooldowns for potion healing, optional potion drinking, and supported mana flasks, with item-slot cooldown sweeps and a configurable HUD. Non-potion buffs, healing, and unrelated mana sources remain untouched. AI usage disclaimer: This mod was developed with AI-agent assistance using this agent workflow. The project owner reviewed the work during development.

Features

  • Source-specific Potion Slot cap: Limits each player to 2 simultaneous beneficial lasting potion effects by default across drinkable, splash, and lingering potions (including modded potion effects delivered through standard potion behavior). Harmful effects, instant effects, and Non-Potion Sources (spells, beacons, food, armor, baubles, and commands) do not occupy Potion Slots.
  • Separate potion tracking: Each Potion Contribution tracks its own remaining duration even when overlapped by a beacon or spell. Clearing an effect with milk, death, or cures/dispels frees its Potion Slot without clearing active cooldowns. Refreshing an effect that already occupies a slot requires no extra slot, and weaker potions that cannot beat an existing non-potion effect consume no slot.
  • Block feedback and splash rules: Blocked drinkable potions and mana flasks stay in your inventory without swinging your hand and show a short action-bar reason. Thrown splash and lingering potions are still consumed if blocked for a player; they evaluate new slot-counted potion effects per player as a group so multi-effect bottles cannot partially sneak past the cap, and fully rejected lingering pulses do not shrink the cloud.
  • Healing Cooldown (30s default): Restricts repeated potion-sourced Instant Health from drinkable, splash, and lingering potions per recipient. Starts only when health actually increases, so full-health uses do not trigger it. Regeneration and non-potion healing (food, spells, beacons, golden apples) are unaffected.
  • Optional Drinking Cooldown (0s default): Disabled out of the box so effect potions are governed by Potion Slots alone. Set a duration in seconds in gameplay.cfg to put a shared cooldown across drinkable potions (excluding water, awkward, mundane, and thick bottles) without blocking splash or lingering potions.
  • Mana Cooldown (30s default): When Electroblob's Wizardry (with or without Just Another Wizardry Mana System) is installed, small, medium, and large mana flasks share one cooldown across all sizes. The supportedManaConsumables item-ID list defaults to those three flasks and can be edited to add or remove items. Failed or full-mana uses do not trigger the cooldown.
  • Persistent cooldowns: Active cooldowns persist across death, dimension changes, reconnects, and server restarts, counting down in real time while offline.
  • Item-slot cooldown sweeps: Affected potions and mana flasks show a translucent vanilla-style cooldown sweep directly on the item slot in your hotbar and inventory.
  • Standalone configurable HUD: The Effect Panel hides automatically when 0 Potion Slots are occupied and keeps Minecraft's normal effect display intact. Standalone, it shows occupied slots (1/2) and active potion icons with compact timers (3m, switching to seconds below one minute). When Statusworks is installed, Auto mode switches to a compact 1/2 pill with a potion bottle icon so effect timers are not duplicated on screen. An optional Cooldown Panel showing icons and timers for active Drinking, Healing, and Mana cooldowns is off by default and can be enabled in the in-game HUD settings.
  • In-game HUD settings: Open Mods -> Only So Many Potions -> Config to toggle the item-slot overlay or Cooldown Panel, switch Effect Panel display mode (Auto, Full, Compact), adjust position, scale, layout, opacity, and timer colors, preview changes with sample entries without creating real effects or cooldowns, or reset HUD settings to defaults.

Configuration and Commands

  • Gameplay rules (config/onlysomanypotions/gameplay.cfg): Server-authoritative and synced to clients automatically; changes require a restart. Configure the Potion Slot cap, independent cooldown durations, includedEffects and excludedEffects lists (overriding which lasting potion effects occupy slots by effect registry ID for Potion Sources only), mana integration and supportedManaConsumables, and optional diagnosticMode (false by default) for structured server transition logging when troubleshooting pack interactions. Full defaults and valid ranges are documented in the generated config comments and the README on GitHub.
  • Client HUD (config/onlysomanypotions/client-hud.cfg): Stored separately on the client and editable in-game; never changes server gameplay rules.
  • Operator commands (permission level 2): /osmp inspect [player] shows occupied Potion Slots, active Potion Contributions, and cooldown timers; /osmp resetcooldowns [player] [all|drinking|healing|mana] clears selected cooldowns immediately.

Installation and Compatibility

  • Installation: Install on both the server and client. Requires Forge 14.23.5.2847+ and MixinBooter 12.1+ (already bundled when running on Cleanroom).
  • Mod integrations and coexistence: Optional mana-flask integration with Electroblob's Wizardry and Just Another Wizardry Mana System, plus automatic compact Effect Panel mode with Statusworks. Coexists with Potion Core (modded potion effects count, custom HUD icons render, and Dispel frees occupied slots), Default Potion Tweaks (custom instant-health scaling applies when allowed and suppresses during Healing Cooldown), and Just Another Food System (food buffs and healing stay separate from potion limits).
  • Limitations: Applies to players only (including creative mode), not mobs. Custom modded items that apply effects or healing outside standard Minecraft potion behavior are not restricted; items listed in supportedManaConsumables share only the Mana Cooldown.

Links

Only So Many Potions Team

profile avatar
  • 1
    Followers
  • 61
    Projects
  • 7.2K
    Downloads

More from MahghuuulsView all

  • Setworked project image

    Setworked

    Presents armor set bonuses from supported mods in the Setworks tooltip format.

    • 10
    • November 28, 2026
  • Material Enchanting project image

    Material Enchanting

    Overhauls the enchanting table with configurable, item-based recipes.

    • 8
    • November 28, 2026
  • Stealthworks project image

    Stealthworks

    Adds directional detection for supported mobs and an eye that shows when they grow suspicious or detect you.

    • 12
    • November 24, 2026
  • Avoid Dance project image

    Avoid Dance

    Adds Evasion, Parry and Deflect, automatic player defenses that can cancel physical hits; armor toughness becomes Deflect chance, and pack makers add the other stats and Parry Weapons.

    • 12
    • November 24, 2026
  • Setworked project image

    Setworked

    Presents armor set bonuses from supported mods in the Setworks tooltip format.

    • 10
    • November 28, 2026
  • Material Enchanting project image

    Material Enchanting

    Overhauls the enchanting table with configurable, item-based recipes.

    • 8
    • November 28, 2026
  • Stealthworks project image

    Stealthworks

    Adds directional detection for supported mobs and an eye that shows when they grow suspicious or detect you.

    • 12
    • November 24, 2026
  • Avoid Dance project image

    Avoid Dance

    Adds Evasion, Parry and Deflect, automatic player defenses that can cancel physical hits; armor toughness becomes Deflect chance, and pack makers add the other stats and Parry Weapons.

    • 12
    • November 24, 2026