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
2simultaneous 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 (
30sdefault): 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 (
0sdefault): Disabled out of the box so effect potions are governed by Potion Slots alone. Set a duration in seconds ingameplay.cfgto put a shared cooldown across drinkable potions (excluding water, awkward, mundane, and thick bottles) without blocking splash or lingering potions. - Mana Cooldown (
30sdefault): 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. ThesupportedManaConsumablesitem-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
0Potion 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,Automode switches to a compact1/2pill 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 -> Configto 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,includedEffectsandexcludedEffectslists (overriding which lasting potion effects occupy slots by effect registry ID for Potion Sources only), mana integration andsupportedManaConsumables, and optionaldiagnosticMode(falseby 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 MixinBooter12.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
supportedManaConsumablesshare only the Mana Cooldown.


