Skip to content
JackFred2 edited this page Jan 29, 2024 · 2 revisions

Inventory Button

A GIF recording on the inventory button to access the Chest Tracker GUI. Can now be moved around by users.

The inventory button provides a clickable button to access the GUI. You can also drag it around, and it will try to avoid the edges of the GUI and slots. If you really want to, you can ignore this avoidance by holding [Shift] while dragging.

Custom Positions

When users drag the button, the custom positions are stored in <minecraft dir>/chesttracker/user_button_positions.dat in NBT format. You can delete this file to reset to the defaults, or can manage them by screen using the in-game YACL configuration screen.

By default, positions for a given screen are loaded from resource packs under the assets/chesttracker_button_positions directory - this allows preset positions to be made for other mod's screens (or PR'd to Chest Tracker!). You can create these files in-game by enabling "Show Export Button" in the config - these are saved to <minecraft dir>/chesttracker/export/. The names of these files do not matter, but can be overriden by using the same name as normal.

Button Position File Format
{
  "class_names": [ // An array of screen class names
    "net.minecraft.class_494",
    "net.minecraft.client.gui.screens.inventory.LoomScreen"
  ],
  "position": {
    "x_align": "right",
    "x_offset": 13,
    "y_align": "top",
    "y_offset": 5
  }
}

All positions are refer to the top left corner of the button.

Valid options for x_align, and their behavior for x_offset:

x_align Description x_offset behavior
screen_left Aligned to the left of the entire screen. Offset in pixels from the left of the screen.
screen_right Aligned to the right of the entire screen. Offset in pixels from the right of the screen.
left_with_recipe Aligned to the left of the GUI. Moves left with the recipe book. Offset in pixels from the left of the GUI, inwards.
left Aligned to the left of the GUI. Does not move left with the recipe book. Offset in pixels from the left of the GUI, inwards.
right Aligned to the right of the GUI. Offset in pixels from the right of the GUI, inwards.

Valid options for y_align, and their behavior for y_offset:

y_align Description y_offset behavior
screen_top Aligned to the top of the entire screen. Offset in pixels from the top of the screen.
screen_bottom Aligned to the bottom of the entire screen. Offset in pixels from the bottom of the screen.
top Aligned to the top of the GUI. Offset in pixels from the top of the GUI, inwards.
bottom Aligned to the bottom of the GUI. Offset in pixels from the bottom of the GUI, inwards.

Main GUI

A numbered overview of the main Chest Tracker GUI

Legend

1. Key Selection

Allows you to select a key to view - usually a dimension or special storage such as an Ender Chest.

2. Search Bar

Searchables-enabled search bar. Can select specific filters in the format filter:value.

3. Item Sorting

Allows you to select how the item list is sorted. Valid methods are by item count and item name, both in either ascending or descending order.

4. Item Container

Filters items by what they're stored in - Chests, Barrels, Hoppers, Furnaces, Shulker Boxes or everything.

5. Memory Bank Settings

Allows you to change the Memory Bank Settings of the currently loaded memory bank.

6. Memory Bank Manager

Allows you to load or create a different memory bank than the currently loaded one.

7. Settings

Opens the configuration screen for Chest Tracker as a whole. Can also be accessed via Mod Menu.

8. Close

Closes the Chest Tracker GUI, and returns to the previous GUI if applicable.

9. Item List

Displays all memorised items matching the filters and search text. Click on an item to search it. Tries to be specific, be matching enchantments, potion effects and name if applicable.

The text size of each item displayed can be shrunk by changing the 'GUI Text Relative Scale' option in the global Chest Tracker settings.

10. Scroll Bar

Scrolls the item list. You can also use the scroll wheel on your mouse.

11. Resize

Allows you to resize the main GUI between 9x6 slots and 18x12 slots. Note that large sizes may cause slowdowns while rendering a large amount of items. The size can also be changed in the mod config, and the widget removed if preferred.