All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Loot Bag

Loot Bag

by Karashok-Leo • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Loot Bag

NOTES❗❗❗

In version 1.2.0 I rewrote almost the entire mod. What's different from before?

  1. The mod now no longer depends on any other dependency mod other than the fabric api.
  2. It is now configured via datapack instead of config files. (Don't update if you're not ready to rewrite the config file as a datapack!)
  3. Every loot bag used to be a new item, this was done to accommodate some operations such as the vanilla recipe output that did not support writing NBT on items. But this practice was costly, introduced BRRP as a dependency, and defied conventional logic. Now all loot bags are the same item, and the loot bag data is stored in the item's NBT tag.
  4. The mod is now extensible in code, if you are a mod developer you can generate your datapack using the provider class provided by the mod and even add more loot bag types.

🪄Introduction

Another loot bag mod, designed for modpacks.

loot bags

Right click to open a preview screen. Right click when sneaking to open the bag directly.

(Single) Loot Bag

Contains a single set of loot.

single loot bag

Optional Loot Bag

Contains multiple sets of loot, and you can choose to obtain one of them.

optional loot bag

Random Loot Bag

Contains multiple sets of loot, and you can obtain a random set of them.

random loot bag

⚙️Configuration

This mod is highly configurable. The config files will be automatically generated as examples. After version 1.2.0, the entire mod underwent a thorough refactoring. Now it is data driven (mostly), and the example data pack can be found HERE.

✉️Feedback

If there are any bugs or suggestions, please provide feedback to the issue page.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Fabric
10d ago 1
1.21.1
Neoforge
10d ago 1
1.20.1
Forge
12d ago 1
1.21.1
Neoforge
12d ago 1
1.21.1
Fabric
12d ago 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
[1.3.2] loot-bag-1.3.2.jar by Karashok-Leo on Oct 17, 2026
Download
  • Fix loot bag rarity before enchantment handling
[1.3.2] loot-bag-1.3.2.jar by Karashok-Leo on Oct 17, 2026
Download
  • Fix dedicated-server loading of client packet handlers
[1.3.1] loot-bag-1.3.1.jar by Karashok-Leo on Oct 15, 2026
Download
  • Port Loot Bag to Forge 1.20.1
[1.3.1] loot-bag-1.3.1.jar by Karashok-Leo on Oct 15, 2026
Download
  • ### WARNING: Datapacks from old version need migrate
  • Port Loot Bag to NeoForge 1.21.1
[1.3.1] loot-bag-1.3.1.jar by Karashok-Leo on Oct 15, 2026
Download
  • ### WARNING: Datapacks from old version need migrate
  • Port Loot Bag to Fabric 1.21.1
[1.3.1] Loot Bag 1.3.1 by Karashok-Leo on Jul 28, 2025
Download
  • Deleted the field translucent from the Icon class
  • Improved compatibility of Item Icon (loot-bag:item)
[1.3.0] Loot Bag 1.3.0 by Karashok-Leo on Jun 30, 2025
Download
  • Support item icon
  • The format of the content icon has been changed, see example datapack!!!
[1.2.7] Loot Bag 1.2.7 by Karashok-Leo on Feb 14, 2025
Download
  • Add tooltips for loot bags
  • Allow quick open a stack of bags
[1.2.6] Loot Bag 1.2.6 by Karashok-Leo on Aug 30, 2024
Download
  • Hotfix for 1.2.5: Fixed loaded loot bags being cleared in single-player mode
[1.2.5] Loot Bag 1.2.5 by Karashok-Leo on Aug 30, 2024
Download
  • Fix possible crashes caused by certain classes being preloaded before startup
[1.2.4] Loot Bag 1.2.4 by Karashok-Leo on Aug 22, 2024
Download
  • Fix LootBagEntry cannot get bag entry during loading loot tables
[1.2.3] Loot Bag 1.2.3 by Karashok-Leo on Aug 20, 2024
Download
  • Fixed the issue of unavailability on the server (avoid loading client-side classes)
  • Add error messages
[1.2.2] Loot Bag 1.2.2 by Karashok-Leo on Aug 04, 2024
Download
  • Add new content type: loot-bag:effect
  • Add new loot entry: loot-bag:loot_bag
[1.2.1] Loot Bag 1.2.1 by Karashok-Leo on Aug 04, 2024
Download
  • Support writing the item id as the texture of the icon.
[1.2.0] Loot Bag 1.2.0 by Karashok-Leo on Aug 03, 2024
Download
## NOTES❗❗❗

In version 1.2.0 I rewrote almost the entire mod.
What's different from before?
1. The mod now no longer depends on any other dependency mod other than the fabric api.
2. It is now configured via datapack instead of config files. (Don't update if you're not ready to rewrite the config file as a datapack!)
3. Every loot bag used to be a new item, this was done to accommodate some operations such as the vanilla recipe output that did not support writing NBT on items. But this practice was costly, introduced BRRP as a dependency, and defied conventional logic. Now all loot bags are the same item, and the loot bag data is stored in the item's NBT tag.
4. The mod is now extensible in code, if you are a mod developer you can generate your datapack using the provider class provided by the mod and even add more loot bag types.
[1.1.0] Loot Bag 1.1.0 by Karashok-Leo on May 30, 2024
Download
  • Now supports running commands when opening bags.
  • The previously auto-generated config file is no longer valid and may even cause errors. Please delete them before entering the game.**
Loot Bag Icon
Download Loot Bag
Select game version
Select platform