ILoot
About the Modification
ILoot is designed for use in any Minecraft gaming worlds that utilize custom loot tables. This tool covers all possible scenarios: from special events and unique structures to individual creature characteristics - in short, everything that requires custom loot tables. In combination with mods that add new structures (for example, CubicStruct or similar solutions), ILoot provides the ability to automatically integrate created loot tables directly into world save files. This allows players to use ready-made loot tables without unnecessary complications and manual intervention.
Thanks to ILoot, you can develop loot tables that will be initially present in the gaming world and activate whenever any structure or event accesses them by loading.
How to Use
On the first launch of the mod, the 'iloot_tables' directory is automatically created in the main Minecraft folder. To make your loot tables available in the game, place them in the corresponding subfolders (chests - for chests, entities - for creatures, gameplay - for game events). After that, load the tables using the command:
{LootTable:"iloot:type/loot_table"}
As an example: to add the 'example.json' loot table to a chest, you can use the command: /give @p minecraft:chest 1 0 {BlockEntityTag:{LootTable:"iloot:chests/example"}}