## Minor Update
**Weight system Update:** Completely rewrote the weight handler to support complex mods (like TACZ) purely through the config, alongside some highly requested quality-of-life additions.<br><br>
- `nbtWeightPaths`: A new config list that extracts hidden IDs (like `tacz:9mm` or equipped scopes on guns) from an item's NBT data and assigns them specific fallback weights.<br><br>
- _Example 1 (Ammo):_ Adding `"tacz:ammo;AmmoId;0.05;true"` tells the weight system to look inside the base `tacz:ammo` item to find the specific `AmmoId`. If the ammo isn't configured individually, it defaults to a fallback weight of `0.05` per bullet.<br><br>
- _Example 2 (Attachments):_ Adding `"tacz:modern_kinetic_gun;AttachmentSCOPE.tag.AttachmentId;0.5;false"` tells the system to dig through a gun's NBT folders (specifically, it opens the `AttachmentSCOPE` folder, then the `tag` folder inside of it, to read the `AttachmentId`) to check for an equipped scope. If a scope is found, it checks your explicit weights or defaults to adding `0.5` weight. If no scope is equipped, it adds `0.0` weight (because the final flag is `false`).<br><br>
- Special NBTs Support: The standard `customItemWeights` list now supports those extracted raw string IDs, allowing you to assign weight to nested items and attachments. (The reason this is needed is because mods like TACZ use a single base registry ID like `tacz:ammo` for all bullets, hiding the specific ammo type under an NBT label).<br><br>
- Once the NBT paths are set up above, you can simply add `"tacz:9mm;0.02"` or `"tacz:sight_exp3;0.8"` directly into your standard `customItemWeights` list to balance them perfectly!<br><br>
**New command:** `/stamina reload`: A new command to instantly refresh all weight caches, tag caches, and NBT configs in game without restarting your server.<br><br>
- _Example:_ Tweak your item weights in the `lists.toml` file, save the file, and type `/stamina reload` in chat. Your new weights will apply to player inventories immediately!
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }