LootBag

A powerful utility mod allowing server admins to create and manage custom weighted LootBags directly through in-game commands.

File Details

recraft-1.0.1-forge-1.20.1.jar

  • R
  • Mar 31, 2026
  • 654.14 KB
  • 30
  • 1.20.1
  • Forge

File Name

recraft-1.0.1-forge-1.20.1.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:lootbag-1500132:7852236")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven


🎒 Loot Bag System: Dynamic Quantity Update

✨ New Feature: Stackable Rewards

  • Custom Item Amounts: You can now define a specific quantity for each entry in your loot tables (e.g., granting 16 diamonds instead of just one).

  • New Data Format: Migrated the storage backend to a triple-parameter format: ID:Weight:Quantity.

    • Example: minecraft:gold_ingot:10:32 (Weight of 10, drops 32 ingots).

  • Dynamic Feedback: The in-game success message now accurately displays the number of items received (e.g., "You have obtained: 16x Diamond").

🛠️ Command Enhancements (/lt)

  • Updated /lt add: Added a new mandatory argument for the item amount:

    • Usage: /lt <number> add <weight> <quantity> <itemid>

  • Improved /lt list: The list view now includes a dedicated "Qty" column to visualize your settings at a glance.

  • Smart Suggestions: The /lt remove command now features intelligent auto-completion, suggesting only items that are currently present in the selected table.

🔧 Technical Fixes & Optimizations

  • "Air Item" Fix: Resolved a registry lookup issue where empty items would occasionally appear due to incorrect parsing of the new quantity data.

  • Enhanced String Parsing: Improved the splitting logic to correctly handle IDs containing colons (namespace:path) while isolating weight and quantity parameters.

  • Inventory Safety: The system now respects the maximum stack size (64) and correctly drops any overflow on the ground if the player's inventory is full.

  • Hand Handling Fix: Corrected a bug where right-clicking would trigger the loot bag twice (off-hand is now properly ignored).


Note: Existing loot tables may need to be updated or reset to match the new 3-parameter format (ID:Weight:Quantity) for the system to function correctly.