Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions pages/struct.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,18 @@
"main": "home",

"page_structure": ["home.md", "basic-text.md", "the-assembler.md", "technical-details.md"]
},

"tbm": {
"id": "tbm",
"display": "TabManager",
"source": "https://snackbag.net/snackbag/TabManager",
"issues": "https://snackbag.net/snackbag/TabManager/issues",
"main": "home",

"download_info": "via Modrinth",
"download_precompiled": "https://modrinth.com/mod/tabmanager",

"page_structure": ["home.md", "visual-adjustments.md", "item-filtering.md", "neat-things.md"]
}
}
6 changes: 6 additions & 0 deletions pages/tbm/home.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# TabManager

Tab Manager is a Minecraft Utility mod that allows you to restructure your entire creative inventory and filter out
items that you do not need. It supports multiple configuration files, enabling you to switch between them in-game. You
can share your configurations with friends or the community by exporting and importing configuration files. Consult the
sidebar for a total overview of features.
33 changes: 33 additions & 0 deletions pages/tbm/item-filtering.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Item Filtering
You can open the item filter with the "Edit Item Filter..." button in the configuration GUI. You can find the button right
below the tray.

You will see a GUI like this:

![Item Filter Menu](/static/img/tbm/item_filter_menu.png)

With the item filter, you can filter out any items you do not need. It supports both regular expressions and standard glob:

If you click "Add Filter...", a menu like this will pop up:
![Item Filter Add Menu](/static/img/tbm/item_filter_edit_menu.png)

In the first textbox, you can add the predicate. This is either a glob or a regular expression:

Here's an example filtering out **all** wool blocks:
- Regular Expressions: e.g. ^minecraft:.+_wool$
- Glob: e.g. minecraft:*_wool

Glob is **exclusive**. You can only specify items you do **NOT** want. You cannot only include a item of one type and exclude all others
with one line. The NOT-Operator (!) is NOT supported.

Regular expressions are also mostly exclusive, although you can use a trick involving negative lookaheads to make the
filter exclude out everything else and leave only the thing you specified in the regex.

Here's an example to only leave "minecraft:(something)_wool" and exclude everything else: `^(?!minecraft:.+_wool$).*`

**If you use regular expressions, you _MUST_ tick the "Use Regular Expressions" checkbox**, otherwise it will be interpreted
as a glob and will do nothing.

By clicking on an item group, you can either add or remove it to or from the "Applied Groups" column.

Click save if you are happy, click discard if you want to give up.
13 changes: 13 additions & 0 deletions pages/tbm/neat-things.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Neat Things

There are a few neat things I'd like to familiarize you with.

There's a command: `/tabmd` which stands for "TabManager Debug". Its use is not encouraged as it does not save
automatically. It was mainly used to help understand how the main part of restructuring will work during development of
the mod. After the GUI was implemented, **the `/tabmd` command has been deprecated**.

There is no documentation on the command, as, once again, its use is strongly discouraged. It is mainly kept for
reference if something would break in the future as the command does not require a separate GUI.

If you use the command to customize your creative inventory nonetheless, you will have to save your configuration by
opening the GUI and closing it again. There is currently no other way and probably also won't be in the future.
61 changes: 61 additions & 0 deletions pages/tbm/visual-adjustments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Basics

## Opening the GUI
To open the configuration GUI, just press the button with the pen in the top right corner of your creative menu, right
above the search tab:

![Screenshot of Edit Button in creative inventory](/static/img/tbm/edit_button.png)

right after, you should be greeted with a gui that allows you to edit almost _everything_:

![Tab Manager Screenshot](/static/img/tbm/preview.png)

## Restructuring
To restructure your inventory, you have the following controls available:

![Control Dock under the main inventory](/static/img/tbm/control_dock.png)

To get started, first select a tab you want to edit. If you haven't selected any tab, all the buttons except 8 and maybe
9 should be greyed out. This is normal.

We'll go over all the buttons below:

- **Button 1**: This button shows an arrows to the left. If you select a tab that cannot be moved to the left further,
this button will be greyed out. If you press this button, the selected tab will move to the left, and if there is already
a tab on the left, it will switch places with that tab.
- **Button 2**: This button does the same thing as **Button 1**, but moves the tab to the right instead of the left.
- **Button 3**: This button will move the selected tab to the upper row. It will switch places if there's another tab in
the place the button should move to. This button will be greyed out if the tab is already on the top row.
- **Button 4**: This button does the same thing as **Button 3**, but moves the tab on the lower row instead of the upper row.
- **Button 5**: This button will move the tab into the tray. More on that: [The Tray](#the-tray)
- **Button 6**: This button will move the tab from the tray into a free spot in the creative inventory. If there's no free
spot available, this button will be greyed out. In that case, move another tab into the tray first.
- **Button 7**: This button will allow you to change the icon of the selected tab. More on that: [Changing the icon](#changing-the-icon)
- **Button 8**: This button will append a page to the creative menu.
- **Button 9**: This button will remove the last page of the creative menu. If there are tabs in it, TabManager will search
for free spots on other pages and move them there. You cannot have less pages than you originally had without tweaks, hence
this button will be greyed out.

## The Tray
If you put tabs into the tray (see [Restructuring](#restructuring)), they will be hidden away from the creative menu.

You can also use the tray to store tabs to put them on other pages. To do that, first put the tab you want to move into the
tray, switch to another page and remove it from the tray there.

If there's no space on the current page to unload a tab, the button will be greyed out, and you will not be able to move
the tab into the page. In that case, first put another tab from that page into the tray to make space and move it afterward.

## Changing the icon
To change the icon of a tab, first select the tab in the creative menu and press the icon change button
(see [Restructuring](#restructuring))

You will be greeted with a menu like this:
![The icon-change menu](/static/img/tbm/icon_change_menu.png)

If you click an item in the list, the tab will automatically change. If you can't find the item you're searching for,
there's a textbox on the top where you can enter your search query. It works basically the same as the standard creative
menu search, although you do have to press "Search for item" because if I implement the way so it searches automatically,
the performance takes a MASSIVE hit.

If you're finished doing this, you can either press escape to exit completely, or just the "Close" button to
go back to the Config GUI.
Binary file added static/img/tbm/control_dock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/tbm/edit_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/tbm/icon_change_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/tbm/item_filter_edit_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/tbm/item_filter_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/tbm/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ <h1>SnackBag <span class="snackbag-colors">Wiki</span></h1>
<div class="cards" style="margin-top: 20px">
<@card "title": "TT20 mod", "download": "https://modrinth.com/mod/tt20", "issues": "https://github.com/snackbag/", "description": "TT20 is a server-side Minecraft mod designed to optimize performance during low TPS (ticks per second) scenarios.", "href": "/w/tt20"/>
<@card "title": "Neilon Library", "sources": "https://github.com/snackbag/neilon", "issues": "https://github.com/snackbag/neilon/issues", "description": "FabricMC Quality of life text library to aid working with Minecraft's abstract and complex text system.", "href": "/w/neilon"/>
<@card "title": "TabManager", "download": "https://modrinth.com/mod/tt20", "issues": "https://github.com/snackbag/TabManager/issues", "description": "TabManager is a client-side Minecraft mod to reorganise, adjust, hide and show creative menu entries in a user-centric way.", "href": "/w/tbm"/>
</div>
</div>
</body>
Expand Down