Mod
Mouse 4 as back
No reviews yet
Adds a hotkey that allows you to go to the previous screen if possible.
Includes quality of life improvements and small tweaks to enhance and customize gameplay.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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
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
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers