A client-side modification designed to enhance the efficiency of using handheld graphical user interface items such as backpacks and books.
Introducing Backpack Opener
What It Is
This client-side mod streamlines the usage of handheld GUI items, allowing for quicker interactions. Some of the items it improves include:
- Backpacks
- Wireless terminals
- Books
How It Works
To open a book, simply right-click it within your inventory GUI. This action automatically transfers the item to your primary hand and opens it for use. Once you close the item’s GUI, the item is returned to its original position in your inventory.
Visual Demonstration
Before | After |
---|---|
Configuration
The entries are managed via CraftTweaker. It is advisable to include entries exclusively in a script with the #sideonly client
preprocessor. Failing to do so may lead to errors on dedicated servers, as this mod operates solely on the client side.
Usage Instructions
The command for adding items that allow for quick opening while sneaking is as follows:
// Items to enable quick access on, sneak to open the item
mods.bpopener.BPOpener.addEntry(IIngredient item, boolean sneaking);
Example Code
#sideonly client
mods.bpopener.BPOpener.addEntry(, false);
mods.bpopener.BPOpener.addEntry(, false);
mods.bpopener.BPOpener.addEntry(, false);
mods.bpopener.BPOpener.addEntry(, false);
Important Notes
This mod should not be used on servers that prohibit auto-refill features or similar modifications unless explicitly permitted by the server rules.