Mod

Sophisticated Backpacks - MT Inventory Weight

Quick rating

Sophisticated Backpacks - MT Inventory Weight

No reviews yet

Accurate MT Inventory Weight support for Sophisticated Backpacks (Unofficial Fabric port), reading real backpack contents via the SB wrapper API.

QoL & Tweaks
Storage & Organization
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
Creative Commons Attribution 4.0 International
Latest Version
Sophisticated Backpacks - MT Inventory Weight 1.0.0
Authors
CurseForge
Modrinth

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.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

About

Description

Sophisticated Backpacks InventoryWeight

Accurate MT Inventory Weight support for Sophisticated Backpacks (Unofficial Fabric port).

MT Inventory Weight ships a generic backpack calculator that reads container NBT, but Sophisticated Backpacks assigns each backpack a UUID and stores its real contents in world BackpackStorage (PersistentState) — not always in the item NBT. Generic NBT reading therefore under- or mis-counts SB backpacks. This add-on fixes that by reading the actual contents through the Sophisticated Backpacks API.

It registers an Inventory Weight item weight provider (via the inventoryweight entrypoint) at priority 8500 — above the built-in generic backpacks provider (8000) — so SB backpacks are handled by this accurate provider while everything else falls through to the defaults.

To read contents it uses the SB wrapper API. This resolves UUID-backed contents from BackpackStorage automatically, so equipped, held, and stored backpacks are all weighed correctly.

Weight model

Matches the built-in backpack model:

effectiveWeight = emptyBackpackWeight + (contentsWeight / 2)
  • contentsWeight is computed by recursing each inner stack through Inventory Weight's own lookup (context.nested()), so datapack weights, nested containers, and other add-ons all apply.
  • The result's base weight carries the full (undivided) contents weight for display.

Notes

  • If Sophisticated Backpacks is not installed, the provider is inactive (a warning is logged) and Inventory Weight uses its default behavior.
  • nested() is used when recursing to avoid runaway depth with nested backpacks.
  • The empty-backpack base weight is a single constant (SophisticatedBackpacksInventoryWeight#EMPTY_BACKPACK_WEIGHT); wire it to fzzy_config if you want it user-configurable.

Sophisticated Backpacks InventoryWeight

Accurate MT Inventory Weight support for Sophisticated Backpacks (Unofficial Fabric port).

MT Inventory Weight ships a generic backpack calculator that reads container NBT, but Sophisticated Backpacks assigns each backpack a UUID and stores its real contents in world BackpackStorage (PersistentState) — not always in the item NBT. Generic NBT reading therefore under- or mis-counts SB backpacks. This add-on fixes that by reading the actual contents through the Sophisticated Backpacks API.

It registers an Inventory Weight item weight provider (via the inventoryweight entrypoint) at priority 8500 — above the built-in generic backpacks provider (8000) — so SB backpacks are handled by this accurate provider while everything else falls through to the defaults.

To read contents it uses the SB wrapper API. This resolves UUID-backed contents from BackpackStorage automatically, so equipped, held, and stored backpacks are all weighed correctly.

Weight model

Matches the built-in backpack model:

effectiveWeight = emptyBackpackWeight + (contentsWeight / 2)
  • contentsWeight is computed by recursing each inner stack through Inventory Weight's own lookup (context.nested()), so datapack weights, nested containers, and other add-ons all apply.
  • The result's base weight carries the full (undivided) contents weight for display.

Notes

  • If Sophisticated Backpacks is not installed, the provider is inactive (a warning is logged) and Inventory Weight uses its default behavior.
  • nested() is used when recursing to avoid runaway depth with nested backpacks.
  • The empty-backpack base weight is a single constant (SophisticatedBackpacksInventoryWeight#EMPTY_BACKPACK_WEIGHT); wire it to fzzy_config if you want it user-configurable.

Screenshots

Gallery

This project has no gallery images yet.

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

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Total Downloads
CurseForge
<1,000
Modrinth
<1,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync