Sophisticated Tab: Tabs, Controls, and Settings
On this page (15)
- How backpack tabs work
- Live icons and active highlight
- Tab strip placement, capacity, and pagination (>8 bags)
- Live row refresh
- Discovery, deduplication, and linked backpacks
- Strictly read-only scanning ( * UUID-less bags)
- Issue #1 duplicate fix (bridged accessory slots)
- Linked backpacks
- Nested sub-backpacks
- Safe container switching
- Reordering and hiding tabs
- Drag-and-drop
- Right-click context menus
- Settings screen ( BackpackSettingsScreen )
- Keybinds and Settings tab recovery
This guide covers every player-facing feature of Sophisticated Tab: how backpacks are discovered and rendered, how container switching avoids cursor warping and crafting-grid ghosts, and how reordering, hiding, and Settings work.
How backpack tabs work
Live icons and active highlight
- One tab per physical backpack: Each carried top-level Sophisticated Backpack receives its own tab displaying a defensive copy of its live
ItemStack—preserving backpack tier (leather, copper, iron, gold, diamond, netherite), primary/accent dye colors, and custom anvil names. - Active tab state: While viewing a carried
BackpackScreen, the tab matching that exact backpack (BackpackCatalogService.isEntryActive) stays in its active/pressed state.- Sophisticated Tab matches by the open container’s physical
(handlerName, identifier, slot)route first, and falls back tocontentsUuidonly for non-linked bags. - Because matching checks
BackpackContextAccess.isTopLevelCarriedItemContext, opening a placed backpack block in the world or a nested sub-backpack inside another backpack does not falsely highlight a carried tab.
- Sophisticated Tab matches by the open container’s physical
- Return to Inventory tab: On Legendary Tabs (
0.8.2),BackToInventoryTab(sophisticatedtab_back_to_inventory, priority10) sits onBackpackScreenand uses Legendary Tabs’inventory.pngicon while suppressing LT’s built-inInventoryTabon that screen so there is no duplicate button. On1.21.1-0.8.0(Mod Tabs), a customBackToInventoryTabwith a crafting-table overlay serves the same purpose.
Tab strip placement, capacity, and pagination (>8 bags)
- Legendary Tabs (
0.8.2):- Pre-registers 36 backpack tab slots (
sophisticatedtab_backpack_0throughsophisticatedtab_backpack_35, priorities20–55), withBackToInventoryTabat priority10andSettingsTabat priority100. - Unused slots collapse with zero visual footprint.
TabScreenAttacherattaches backpack and Settings tabs to every screen where Legendary Tabs already draws a tab bar (such asInventoryScreen,BackpackScreen, Curios screens, or Legendary Survival Overhaul screens) without adding bars to unregistered screens like chests.- When carrying more tabs than fit the screen width (e.g., >8 backpacks), Legendary Tabs automatically paginates the overflow behind its Next Page arrow button (
NextTabsButton). SophisticatedBackpacksSizingcomputesBackpackScreenwidth and height using the currently open backpack’sStorageLayout(falling back to the first visible bag), matching Sophisticated Core’s 9-column (<= 81slots) vs 12-column layout and scrollbar width.
- Pre-registers 36 backpack tab slots (
- Mod Tabs (
0.8.2):ModTabsBackpackProviderimplements Mod Tabs’DynamicTabProvider(contribute(Player, Screen, List<TabBase>)), emitting oneModTabsBackpackTabper visible backpack plusModTabsSettingsTabon every screen where Mod Tabs builds a tab bar—no fixed tab pool limit.- Mod Tabs handles pagination and tab bar sizing/headroom natively.
- Standalone
1.21.1-0.8.0(Mod Tabs):BackpackTabProvidercontributes dynamicBackpackTabinstances specifically onInventoryScreenandBackpackScreen, with optionaltabs.maxBackpackTabscapping insophisticatedtab-client.toml.
Live row refresh
If you pick up, equip, unequip, dye, or rename a backpack while your inventory or another tabbed screen is open, TabRowRefresher (Legendary Tabs) / ModTabsRowRefresher (Mod Tabs) checks a cheap per-tick strip signature (BackpackCatalogService.stripSignature). When your carried backpacks or preferences change, it safely refreshes the screen via Screen.resize(...) instead of Minecraft.setScreen(...)—preserving container state and skipping BackpackScreen (so search text and upgrade tabs aren’t reset) as well as any active cursor stack or drag gesture.
Discovery, deduplication, and linked backpacks
Sophisticated Tab scans carried bags through Sophisticated Backpacks’ own PlayerInventoryProvider (BackpackInventoryAccess), so it automatically sees:
- Hotbar and main inventory slots
- Offhand and chest armor slots
- Curios slots (Forge
1.20.1& NeoForge1.21.1) - Accessories slots (NeoForge
1.21.1) - Cosmetic Armor (where supported by Sophisticated Backpacks’ inventory handlers)
Strictly read-only scanning (* UUID-less bags)
BackpackDiscovery reads backpackItem.getNumberOfSlots(), wrapper.getColumnsTaken(), wrapper.getContentsUuid(), and LinkedStorageAccess.readEndpointUuid(stack) without calling mutating handlers like getInventoryHandler() or getNumberOfSlotRows(). Because Sophisticated Backpacks assigns a contentsUuid lazily the first time a backpack is opened:
- Newly crafted, never-opened backpacks still appear on the tab strip with their live icon and open normally.
- Multiple unopened identical bags stay separate (two tabs, not collapsed).
- Because they have no persistent UUID yet, they display a gold
*in Settings and cannot be dragged, moved, or hidden until you open them once.
Issue #1 duplicate fix (bridged accessory slots)
When Accessories, Curios, and a slot compatibility bridge (Accessories Compatibility Layer accessories_compat_layer / cclayer) are installed together, Sophisticated Backpacks’ handlers can report the same physical backpack twice. BackpackAliasDeduplicator merges observations that share:
- The exact same live
ItemStackinstance (IdentityHashMap), - The exact same
(handlerName, identifier, slot)route, or - A verified
accessories↔curiosbridged slot mapping (matching normalized slot identifier, slot index, and identity/item signature) when a bridge mod is active.
Meanwhile, genuinely separate identical bags (e.g., one equipped in a back slot and another in your inventory) always remain distinct tabs and open their own separate containers.
Linked backpacks
When Sophisticated Core’s linked storage (LinkedStorageStackData / LINKED_STORAGE_ENDPOINT) links two physical backpack items to the same shared storage contents, both bags share one contentsUuid—but each stack has a distinct endpoint UUID. Sophisticated Tab keys preferences and active highlights on the endpoint UUID (BackpackEntry.uuid()), so:
- Both linked bags get their own tab.
- Hiding or reordering one linked bag does not hide or move the other.
- Opening one highlights only the endpoint you clicked.
Nested sub-backpacks
Only top-level carried backpacks get tabs. Backpacks stored inside another backpack (BackpackContext.ItemSubBackpack) are not enumerated.
Safe container switching
Clicking a tab (or Open Backpack in the right-click menu) routes through BackpackOpenCoordinator:
- Click-time revalidation (
BackpackTargetResolver): Confirms the clicked bag still exists in your inventory—matching byendpointUuidfirst, then(route + contentsUuid), then uniquecontentsUuid(following slot moves), or exact slot + signature match for UUID-less bags. If the backpack was dropped or moved into a chest while the screen was open, the click is canceled safely and the strip refreshes instead of opening the wrong bag. - Crafting-grid & cursor cleanup without cursor recentering: Before sending
BackpackOpenMessage(1.20.1) orBackpackOpenPayload(1.21.1),closeQuietlychecks whether you have items sitting in the 2×2 inventory crafting grid, on your cursor stack, or in another open container. If so, it sendsServerboundContainerClosePacketand tears down the client menu without callingMinecraft.setScreen(null). That returns crafting-grid and cursor items server-side without triggering GLFW mouse cursor recentering (MouseHandler.grabMouse()).
Reordering and hiding tabs
Drag-and-drop
Left-click and hold any identified backpack tab, then move the mouse horizontally (more than 4 pixels). A translucent ghost icon follows your cursor and a 2 px white drop indicator shows where the tab will land. Release to save the new order.
- Page-bounded drag (>8 bags): When viewing page 2+ on a paginated strip, drag boundaries map strictly within the visible page slice (
OrderMath.visibleBoundaryForPage) rather than scrambling tabs on page 1. - Rotated / vertical bars (
1.21.1-0.8.0standalone):TabInteractionHandlerprojects cursor coordinates into unrotated bar space (TabsMenu.inverseRotatePoint), so dragging works even when Mod Tabs rotates the bar vertically along the side of a large backpack GUI. (In0.8.2,ModTabsInteractionHandlerusesbutton.isMouseOverand Mod Tabs’ animated X/Y offsets.) - Short clicks: Releasing before
4pixels (within350 msin0.8.2, or any non-drag release in1.21.1-0.8.0) opens the backpack normally. - Layout editor protection: On Mod Tabs, Sophisticated Tab stands down automatically whenever Mod Tabs’ bar layout editor (
TabsMenu.isEditing(screen)) is active.
Right-click context menus
Right-clicking a tab opens a floating context menu (AbstractTabContextMenu):
| Tab right-clicked | Menu options | Notes |
|---|---|---|
Backpack tab |
Open Backpack, Move Left, Move Right, Hide This Backpack |
Move Left/Move Right operate on the visible strip and disable at row ends. Move/Hide disable for * UUID-less or ambiguous bags. |
Settings (gear) tab |
Hide Settings Tab (plus Open Tab Settings in 1.21.1-0.8.0) |
Immediately removes the gear tab from the strip when hidden. |
Return to Inventory tab (1.21.1-0.8.0 only) |
Hide This Tab |
Sets tabs.showBackToInventoryTab = false in sophisticatedtab-client.toml. |
Click anywhere outside the menu or press Esc to dismiss without changes.
Settings screen (BackpackSettingsScreen)
Click the gear tab (or press the Open Tab Settings keybind) to open Sophisticated Tab — Settings:
- Currently Carried: Lists every discovered top-level backpack with its icon, name, and a green Visible or red Hidden toggle. Click a row to toggle visibility.
- Rows marked with a gold
*lack a persistent contents UUID (open the bag once to assign one) or are ambiguous duplicates. - (In
1.21.1-0.8.0only): Each row also includes a hotkey-slot badge (-or#1–#8) to pin a bag to Open Backpack 1–8, plus a Tab Row section at the top to toggle the Settings and Return-to-Inventory tabs.
- Rows marked with a gold
- Saved but not carried: Lists backpack UUIDs remembered in your current world/server profile (for example, bags left in a chest) by their 8-character UUID prefix and a barrier placeholder icon.
- Footer buttons:
- Reset Order: Clears your custom tab ordering for the current world/server profile (requires clicking again within 3 seconds while labeled Confirm?).
- Reset Hidden: Unhides all hidden backpacks in the current profile (also uses the 3-second Confirm? check).
- Clean Unused: Immediately removes saved preferences for backpacks you are not currently carrying.
- Done: Saves/invalidates the catalog cache and returns to the parent screen.
Keybinds and Settings tab recovery
Bind keys under Options → Controls → Key Binds → Sophisticated Tab (all unbound by default):
- Open Tab Settings (
key.sophisticatedtab.openSettings): OpensBackpackSettingsScreen. In0.8.2, press it during normal gameplay (mc.screen == null); in1.21.1-0.8.0, it also works while the Inventory or a Backpack screen is open. - Show/Hide Settings Tab (
key.sophisticatedtab.toggleSettingsTab): Toggles whether the gear tab appears on the strip (takes effect on next screen init in0.8.2, or immediately viaTabsMenu.reinitCurrentScreen()in1.21.1-0.8.0). - Open Backpack 1–8 (
key.sophisticatedtab.openBackpack1–8,1.21.1-0.8.0only): Opens the backpack pinned to that slot, or falls back to the bag at that position in your visible tab order. Pinned hotkeys still work even if you hide that bag’s tab.
[!TIP] If you hid the Settings gear tab without binding a key:
- In
0.8.2: Openconfig/sophisticatedtab/tab_preferences.jsonand change"settingsTabHidden": truetofalse(or bind Open Tab Settings / Show/Hide Settings Tab in Controls).- In
1.21.1-0.8.0: Open Mods → Sophisticated Tab → Config → Tabs in-game and set Show Settings Tab back totrue, or editconfig/sophisticatedtab-client.toml.