Click Out of Containers
Click Out of Containers lets a click outside an open container window close it automatically, on Fabric and NeoForge.
What it does
Normally a click outside the bounds of an open container does nothing useful, but with this mod a click past the window closes the container. The behavior comes from a Minecraft feature that a touch screen triggers, and the mod makes that feature available with a mouse. Builds cover 1.21.1 – 1.21.10 and are released under the GNU Lesser General Public License v3.0 only, so the code is open source. Fabric API, Mod Menu and YetAnotherConfigLib (YACL) are required.
Only the client needs the mod, so players install it while servers do not. Because it can cause unintended side effects with other mods, the config lets a player turn the feature off quickly if issues arise.
Key features
Click-outside closing
A click outside an open container window closes the container, as the touch screen feature already does.
Quick toggle in config
The config screen can disable the outside-click behavior at once when it conflicts with another mod.
Client-side behavior
The change applies only on the player's client, so no server-side install is needed.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 3
How it compares
Close My Screen is open source under the MIT License, client-side only and published for Fabric and NeoForge across 1.21.1 – 26.3. Container Search is also client-side only and open source under the MIT License, but it covers Fabric and Forge for 1.20 – 1.20.2. Choose the option whose loader and version range fit the installation.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Click Out of Containers | Fabric and NeoForge | 1.21.1 – 1.21.10 | Client-side only | 2025-06-20 |
| Close My Screen | Fabric and NeoForge | 1.21.1 – 26.3 | Client-side only | 2026-09-22 |
| Container Search | Fabric and Forge | 1.20 – 1.20.2 | Client-side only | 2023-11-12 |
Questions
Does Click Out of Containers need Fabric API?
More from Microcontrollers
What the author says
Minecraft has a feature that lets you click outside the bounds of a container to automatically close it while using touch screen. Unfortunately, this feature is locked behind requiring using touch screen, but this mod allows you to bypass that restriction! Please note that this may cause issues with other mods or…
Official listing
- Modrinth page
- modrinth.com/mod/click-out-of-containers
- Owner
- Microcontrollers
- Published
- 2025-06-20
- Updated on Modrinth
- 2025-06-20
- Facts verified
- 2026-10-15