# Auto Potion Swap
**Never manually swap potions again.**
Auto Potion Swap is a lightweight quality-of-life addon for Minecraft Bedrock that automatically replaces the potion you just drank or threw with an identical one from your inventory.
It works with:
- All vanilla potions (regular, splash, and lingering)
- Almost every modded / addon potion
---
## Features
- **Smart matching** — Matches the exact same potion (including effect type for vanilla potions)
- **Works with modded potions** — Detects custom potions by name patterns and potion components
- **Supports drinking & throwing** — Handles both `itemCompleteUse` and `itemUse`
- **Glass bottle handling** — Properly deals with leftover glass bottles
- **Lightweight** — Minimal performance impact
- **No commands needed** — Just enable and play
---
## Requirements
- Minecraft Bedrock **1.21.0+**
- **Beta APIs** experiment **must** be enabled
---
## How to Install
1. Download the `.mcaddon` file
2. Open it with Minecraft
3. Create or edit a world → **Behavior Packs** → activate **Auto Potion Swap**
4. Enable the **Beta APIs** experiment
5. Enjoy automatic potion refills!
---
## Notes
- The addon only swaps when an identical potion is available in your inventory
- It prioritizes the first matching potion it finds
- Works in singleplayer and multiplayer (as long as the pack is applied on the world/server)
---
## Changelog
### v1.1.0
- Improved modded potion detection
- Better handling of glass bottles
- More reliable refill timing
- General stability improvements

