Mouse 4 as back
by bikerboys
Mouse 4 as back binds the fourth mouse button to a Back action that closes the current screen and returns to the one before it.
What it does
A hotkey on the fourth mouse button sends the player to the previous screen. Because not every screen stores a reference to the one that opened it, the mod tries several methods in turn: it looks for a button whose label reads back, return, done or cancel, then searches fields with names such as previous, lastscreen and parentscreen, and finally calls the close method that the Escape key uses.
The search is built around vanilla screen behavior. Some submenus, such as video settings nested under the settings screen, keep a link to their parent, and the mod follows fields up to a depth of seven. The method used to find that depth was chosen arbitrarily, and the mod's developer notes that the approach was chosen to make sure it works across the screens tested.
Installation needs Fabric API. The mod runs on the client alone, so only players install it and servers need nothing. Files cover 1.21 – 26.2 for Fabric, with 1.0.0+26.2 for 26.2 as the latest file, released under the MIT License. The source code is public and the mod is open source.
Key features
Fourth mouse button back
Pressing the fourth mouse button returns to the previous screen, without needing to find a back button.
Four fallback methods
When one method fails, the mod tries the next: button labels, stored parent fields, then the Escape close call.
Nested submenu support
Field lookup follows parent references through several levels of screens, so submenus return to their parent.
Single-button detection
A button is accepted only when its text matches one of the expected back words, reducing wrong clicks.
Gallery
Compatibility
Latest build for each game version and loader.
26.x4 of 4 versions with builds
1.21.x9 of 9 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
How it compares
VariableMod is a Fabric client mod for 1.21 – 1.21.8 under the MIT License and open source. My Mouse is Broken covers 1.20.6 – 1.21.1 on Fabric, is client-side only and is open source under the MIT License. Mod Settings is also client-side only and open source under the MIT License, with files for 1.17 – 26.3. Toggle Fix targets 1.21.9 – 26.1.2 and is not open source, while Settings Hotkey is for 26.1.2 only under the CC0 1.0 Universal license.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Mouse 4 as back | Fabric | 1.21 – 26.2 | Client-side only | 2026-07-02 |
| VariableMod | Fabric | 1.21 – 1.21.8 | Client-side only | 2026-05-27 |
| My Mouse is Broken | Fabric | 1.20.6 – 1.21.1 | Client-side only | 2024-10-20 |
| Mod Settings | Fabric | 1.17 – 26.3 | Client-side only | 2026-09-20 |
| Toggle Fix | Fabric | 1.21.9 – 26.1.2 | Client-side only | 2026-07-11 |
| Settings Hotkey | Fabric | 26.1.2 | Client-side only | 2026-07-26 |
Questions
Does Mouse 4 as back need Fabric API?
Does the server need Mouse 4 as back?
Which game versions have files for Mouse 4 as back?
In the catalog
Mouse 4 as back is one of 8,016 Management mods on ModsFinder, and one of 5,930 Management mods for Fabric. 13,894 mods support Minecraft 26.2.
More from bikerboys
Similar mods
What the author says
It has 4 ways of finding the previous screen. It first tries to find any buttons on screen that in the en_us language, has any of these words as its title: back, return, done, cancel. If it finds any button that only contain one of those words, then it will click that.
Official listing
- Modrinth page
- modrinth.com/mod/mouse-4-as-back
- Owner
- bikerboys
- Published
- 2026-07-01
- Updated on Modrinth
- 2026-07-02
- Facts verified
- 2026-10-15
