TooMuchLoot Mod Wiki › Guides › TooMuchLoot Mechanics
TooMuchLoot Mechanics
The mod operates by hooking into the ChestGenHooks system, which was the standard method for handling container loot in Minecraft.
Initialization Process
- Scanning: When a world is loaded, the mod scans every loot category registered by both Vanilla Minecraft and any installed mods (e.g., Thaumcraft, IndustrialCraft 2).
- Caching: The current state of these loot tables is cached in memory.
- Parsing: The mod reads all
.jsonfiles located in theconfig/TooMuchLoot/directory. - Application: The instructions within the JSON files (add, remove, or replace) are applied to the cached loot tables, overriding the default generation settings.
Key Features
- Dynamic Control: Changes can be applied without restarting the entire game by using the reload command.
- Mod Compatibility: Automatically detects loot tables added by other mods, provided they use the standard Forge
ChestGenHookssystem. - Precision Weighting: Allows users to define the exact 'weight' of an item, which determines its rarity relative to other items in the same pool.