Back to mods
Mouse 4 as back project artwork

CurseForge · Minecraft mod

Mouse 4 as back

Adds a hotkey that allows you to go to the previous screen if possible.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Mouse 4 as back release matches 1.21.2?

Updated 5 months ago
Best match for your filters screen-back-hotkey-1.0.0+1.21-1.21.5.jar
Game version 1.21, 1.21.5, 1.21.4
Loader Fabric

Mouse 4 as back screen-back-hotkey-1.0.0+1.21-1.21.5.jar targets 1.21, 1.21.5, 1.21.4 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. 1 required mod needs a matching file.

Where it goes

Is Mouse 4 as back required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Mouse 4 as back screen-back-hotkey-1.0.0+1.21-1.21.5.jar need?

screen-back-hotkey-1.0.0+1.21-1.21.5.jar on 1.21.2. Every mod below is checked against that same setup.

1 required mod needs a matching file

Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

Fabric API Needed by Mouse 4 as back screen-back-hotkey-1.0.0+1.21-1.21.5.jar
required
No matching file

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Mouse 4 as back without breaking your instance.

Built for Mouse 4 as back screen-back-hotkey-1.0.0+1.21-1.21.5.jar on 1.21.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use screen-back-hotkey-1.0.0+1.21-1.21.5.jar. It targets 1.21, 1.21.5, 1.21.4 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside screen-back-hotkey-1.0.0+1.21-1.21.5.jar. It opens that exact file at the source.

About this project

What does Mouse 4 as back add?

Adds a new keybind that makes you go back to the previous screen.

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.

If that fails, it tries to check the screen class. Some screens store a variable to remember the previous screen it was on. Think going from the video settings subscreen back to the settings screen. The mod tries to find any field that is named the following: previous, previousscreen, lastscreen, parent, parentscreen. These variable names are taken from any vanilla screen class I can find. If you have suggestions of ones to add then im all ears.

If that fails. It tries to go to the extending class. Some classes extend other classes and the class they extend may store a variable to the previous screen. So it tries to search with a depth of 7, arbitrarily chosen, and does the field technique described above.

If all of that fails, it tries calling the close method, basically just pressing escape.

If you are for some reason wondering, as a mod dev, on how to make sure this mod works. Then just simple have either a button that only has the text being: back, return, done, cancel. Or store a previous screen variable as previous, lastscreen, previousscreen, parent, parentscreen

Project description from CurseForge.

Pick your setup

Mouse 4 as back by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

13 available setups

Showing the newest 12 of 13 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Mouse 4 as back versions and loaders

1 of 4 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.