Fabric version of the original mod
This mod adds 1 item - Loot Bag, it's not craftable and can be found only in treasure chests or dropped when mob killed.
When Bag is held aloft and right-clicked it will give you 10 random items from configured list and then destroyed.
Possible items are configurable, it's possible to include/exclude specific item, mod, or items containing specific word. Drop rate also configurable as well as mobs and treasure chests which can drop/contain Loot Bag.
Almost all mods should work with the Loot Bag Mod, though some items such as those with nbt/metadata/variants wont work as the mod has no way of knowing all the possible variants or combinations of metadata and nbt.
Configuration options:
- StackSize: Maximum possible stack size for dropped items (default - 15)
- Drops: How many items drop when a loot bag is used (default - 10)
- EnableWhitelist: Use the whitelist (default - false)
- BlackList: Items that should never be dropped from loot bag (default - List of items)
- WhiteList: When whitelist enabled then only items from this list can be dropped (default - List of items)
- Namespaces: Mod IDs (namespaces) to include/exclude from drop list, depends on EnableWhitelist flag (default - lootbagmod)
- EnableContainsList: Enable Contains List (default - false)
- ContainsList: List of words. Uses to include/exclude items from/to drop list if their identifier contains word (default - apples, creative)
- ChestDrops: Enable Loot Bags spawns in treasure chests (default - true)
- ChestsLists: List of chests which can contain loot bag (default - ...)
- MobDrops: Enable Loot Bags drops from killed mobs (default - true)
- DropChance: Enable Loot Bags spawns in treasure chests (default - true)
- AllHostileMobs: Make Loot Bags droppable from all hostile Mobs (default - false)
- AllNonHostileMobs: Make Loot Bags droppable from all passive and neutral mobs (default - false)
- MobList: List of mobs who drops Loot Bag (default - ...)