diff --git a/src/main/java/mod/icarus/crimsonrevelations/init/CRLootTables.java b/src/main/java/mod/icarus/crimsonrevelations/init/CRLootTables.java index 68ee320..5d5f8be 100644 --- a/src/main/java/mod/icarus/crimsonrevelations/init/CRLootTables.java +++ b/src/main/java/mod/icarus/crimsonrevelations/init/CRLootTables.java @@ -6,6 +6,7 @@ import net.minecraft.world.storage.loot.LootEntry; import net.minecraft.world.storage.loot.LootEntryItem; import net.minecraft.world.storage.loot.LootPool; +import net.minecraft.world.storage.loot.LootTableList; import net.minecraft.world.storage.loot.RandomValueRange; import net.minecraft.world.storage.loot.conditions.KilledByPlayer; import net.minecraft.world.storage.loot.conditions.LootCondition; @@ -45,5 +46,16 @@ public static void onLootTableLoad(LootTableLoadEvent event) { new LootCondition[0], "crimsonrevelations:crimson_plate")); } } + + if (event.getName().equals(LootTableList.CHESTS_DESERT_PYRAMID) || event.getName().equals(LootTableList.CHESTS_SIMPLE_DUNGEON)) { + LootPool main = event.getTable().getPool("main"); + main.addEntry(new LootEntryItem(CRItems.protectionRing, 5, 0, new LootFunction[0], new LootCondition[0], "loottable:protection_ring")); + } + + if (event.getName().equals(LootTableList.CHESTS_JUNGLE_TEMPLE) || event.getName().equals(LootTableList.CHESTS_STRONGHOLD_CROSSING) || + event.getName().equals(LootTableList.CHESTS_STRONGHOLD_CORRIDOR)) { + LootPool main = event.getTable().getPool("main"); + main.addEntry(new LootEntryItem(CRItems.protectionRing, 3, 0, new LootFunction[0], new LootCondition[0], "loottable:protection_ring")); + } } }