Lootbag (Thaumcraft)
Description
Control what the different rarities of lootbag drop when opened.
Warning
This compat is not fully documented. Some or all of its features are not present on the wiki. View the source code to gain an accurate understanding of the compat.
Bug
Armor chances are hard coded into randomized loot function, and are not currently removable.
Identifier
The identifier mods.thaumcraft.loot_bag will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
groovy
mods.tc.lootbag
mods.tc.lootBag
mods.tc.LootBag
mods.tc.loot_bag
mods.thaum.lootbag
mods.thaum.lootBag
mods.thaum.LootBag
mods.thaum.loot_bag
mods.thaumcraft.lootbag
mods.thaumcraft.lootBag
mods.thaumcraft.LootBag
mods.thaumcraft.loot_bag/* Used as page default */Adding Recipes
Adds an item with a given weight to the target lootbag in the format
item,chance,rarity:groovymods.thaumcraft.loot_bag.add(ItemStack, int, int)
Example
groovy
mods.thaumcraft.loot_bag.add(item('minecraft:diamond_block'), 100, 2)
mods.thaumcraft.loot_bag.add(item('minecraft:dirt'), 100, 0)Removing Recipes
Removes an item from the target lootbag in the format
item,rarity:groovymods.thaumcraft.loot_bag.remove(ItemStack, int)Removes all items from the target lootbag rarity:
groovymods.thaumcraft.loot_bag.removeAll(int)
Example
groovy
mods.thaumcraft.loot_bag.remove(item('minecraft:ender_pearl'), 0)
mods.thaumcraft.loot_bag.removeAll(2)