TooMuchLoot Mod — Guide
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.
Supported Loot Categories
TooMuchLoot can modify any category registered in the game. Below are the standard vanilla categories available in 1.7.10:
- DUNGEON_CHEST: Found in standard 16x16 cobblestone dungeons.
- MINESHAFT_CORRIDOR: Found in Abandoned Mineshaft chest minecarts.
- PYRAMID_DESERT_CHEST: Found in the four chests at the bottom of Desert Temples.
- PYRAMID_JUNGLE_CHEST: Found in the hidden chests within Jungle Temples.
- PYRAMID_JUNGLE_DISPENSER: The loot inside the traps of Jungle Temples.
- STRONGHOLD_CORRIDOR: Chests found in the hallways of Strongholds.
- STRONGHOLD_LIBRARY: Chests found in Stronghold libraries (usually containing books/paper).
- STRONGHOLD_CROSSING: Chests found in the tiered crossing rooms of Strongholds.
- VILLAGE_BLACKSMITH: The chest found in the Blacksmith building in NPC villages.
- BONUS_CHEST: The optional chest that spawns near the player upon world creation.
Technical Details
File Locations
- Config Folder:
.minecraft/config/TooMuchLoot/- Place your.jsonfiles here. - Dump File:
.minecraft/TooMuchLoot-Dump.txt- Generated after running/tml dump.
Requirements
- Minecraft Version: 1.7.10
- Forge: Requires a compatible version of Minecraft Forge for 1.7.10.
- Note: This mod is a utility and does not add new blocks, items, or mobs to the game. It is strictly for managing existing data structures.