Mouse Buttons Close Inventory (Bugfix)
If you have ever rebound your inventory key to a mouse button in Minecraft, you already know the frustration. Pressing the button pops the inventory open just fine, but pressing it again does absolutely nothing. You are stuck reaching for the Escape key like it is 2013. The Mouse Buttons Close Inventory (Bugfix) add-on exists to end that nonsense once and for all.
This is a small, focused fix for a bug that has been tracked in Minecraft's issue system for nearly a decade, most recently as MC-156810. Vanilla lets you assign "Open/Close Inventory" to a mouse button, but the close half of that action simply never fires. This mod patches that behavior so the toggle actually toggles.
What the Add-on Actually Does
No menus, no config screens, no new keybinds to learn. The mod quietly corrects the input handling so that a mouse button bound to the inventory action closes the screen exactly the way a keyboard key would. That is the entire feature, and that is exactly why people love it.
- Restores the close function for mouse buttons bound to Open/Close Inventory
- Keeps your existing keybind setup untouched
- Works alongside other quality-of-life mods without conflicts in most setups
- Lightweight enough to forget it is even installed
If you play with a gaming mouse that has spare side buttons, this fix turns those buttons into genuinely useful inventory toggles instead of one-way doors.
Supported Minecraft Versions and Loaders
The add-on is built for Forge, which makes it a natural fit for modpacks and heavily modded worlds. A separate Fabric version already exists elsewhere for players on that loader, so both major modding communities are covered. Supported Minecraft versions are listed on the project page, and the fix targets the modern 1.16 through 1.20 era releases where the bug still bites. Always match the mod build to your exact game version and Forge release before launching.
For players who prefer a hands-off approach, the foxygame.net launcher bundles a curated add-on catalog where Mouse Buttons Close Inventory (Bugfix) can be added to a Forge profile in a single click, with version matching handled automatically.
How to Install
Step-by-Step for Forge
- Confirm your Minecraft version and install the matching Forge loader
- Download Mouse Buttons Close Inventory (Bugfix) from the official project page
- Place the .jar file into your mods folder inside the .minecraft directory
- Launch the Forge profile and load into any world
- Bind Open/Close Inventory to a mouse button in Controls and test it
That is the whole process. There are no dependencies beyond Forge itself, and no in-game configuration is required. If you are wondering how to install it on a server, remember that this is a client-side input fix, so each player who wants the behavior needs the mod on their own client.
Why Such a Tiny Fix Matters
Inventory management is constant in Minecraft. Sorting loot, swapping gear, checking a crafting grid, and stashing blocks happen dozens of times per session. Every one of those moments currently costs you a hand movement to the keyboard. Multiply that by hundreds of hours of play and the annoyance adds up to something real. This mod removes friction from the most repeated action in the game.
It also respects your setup. Players who use compact keyboards, lapboards, or controller-adjacent peripherals often rely on mouse buttons for everything. The bug effectively locked them out of a clean inventory workflow. The fix hands that control back without asking anything in return.
Final Thoughts
The Mouse Buttons Close Inventory (Bugfix) add-on is proof that the best mods are not always the biggest ones. It solves one stubborn, ancient problem, does it invisibly, and never gets in your way. Whether you grab it directly or through a launcher, download Mouse Buttons Close Inventory (Bugfix) for Minecraft, drop it in your mods folder, and enjoy an inventory that finally closes with the same button that opened it.
===ARTICLE===