Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Treasure Bags Mod Wiki › Guides › Obtaining Bags

Obtaining Bags

Since bags are not obtainable by default, they must be added to loot tables. This can be done by modifying existing vanilla loot tables or using the mod's built-in entity groups.

Entity Groups

Treasure Bags provides specialized loot tables that allow you to add drops to broad categories of mobs without editing every individual entity file. These are located at data/treasurebags/loot_tables/entity_group/.

Group ID Target Entities
hostile All monsters (Zombies, Skeletons, Creepers, etc.)
peaceful Passive animals (Cows, Sheep, Pigs, etc.)
boss Boss mobs (Ender Dragon, Wither, etc.)
player Dropped when a player is killed.

Starting Inventory

The mod includes a special loot table: treasurebags:starting_inventory. This table is rolled exactly once when a player first joins a world. By default, it contains a single bag of type treasurebags:spawn. Modpack creators can edit this table to provide custom starter kits or multiple bags to new players.