Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
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

  1. 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).
  2. Caching: The current state of these loot tables is cached in memory.
  3. Parsing: The mod reads all .json files located in the config/TooMuchLoot/ directory.
  4. 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 ChestGenHooks system.
  • Precision Weighting: Allows users to define the exact 'weight' of an item, which determines its rarity relative to other items in the same pool.