How to Customize Mod Loot Tables Using Data Packs
Understanding Data Pack Integration
The items that generate inside decorative containers—such as crates, corpses, toilets, and vehicles—are entirely controlled by loot tables. If you want to modify what spawns inside these containers or balance the difficulty of your game, you can do so using standard Minecraft data packs.
This lets you add custom tools, adjust resource abundance, or tailor the loot to fit a specific apocalyptic or survival scenario.
Setting Up Custom Loot Tables
To customize container contents, configure a data pack for your world:
1. Locate your Minecraft save folder, open the saves directory, and enter your world's folder.
2. Open the datapacks subfolder and create or install a data pack containing your replacement loot tables targeting the mod's containers.
3. Within your data pack, define the items, chances, and quantities you want to appear inside specific decorative blocks.
4. Launch your world or run the vanilla /reload command in the in-game chat to apply the data pack.
Once active, any container that refreshes after its timer expires or generates for the first time will draw its items from your customized tables.