Skip to content

Commit cef1bb9

Browse files
committed
Revert loot table changes
Mana bean drops will be hardcoded instead due to the specific usage of NBT.
1 parent e064a4e commit cef1bb9

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/main/java/mod/icarus/crimsonrevelations/init/CRLootTables.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import net.minecraft.world.storage.loot.functions.LootFunction;
1010
import net.minecraft.world.storage.loot.functions.LootingEnchantBonus;
1111
import net.minecraft.world.storage.loot.functions.SetCount;
12-
import net.minecraft.world.storage.loot.functions.SetNBT;
1312
import net.minecraftforge.event.LootTableLoadEvent;
1413
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
1514
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
@@ -46,25 +45,6 @@ public static void onLootTableLoad(LootTableLoadEvent event) {
4645
}
4746
}
4847

49-
// Pechs
50-
if (event.getName().equals(new ResourceLocation(Thaumcraft.MODID, "pech"))) {
51-
LootPool mana_bean_pool = event.getTable().getPool("mana_bean");
52-
53-
if (mana_bean_pool == null) {
54-
mana_bean_pool = new LootPool(new LootEntry[0], new LootCondition[0], new RandomValueRange(1, 1), new RandomValueRange(1, 1), "mana_bean");
55-
event.getTable().addPool(mana_bean_pool);
56-
}
57-
58-
// TODO: Only make pechs drop primal aspect mana beans
59-
if (mana_bean_pool != null) {
60-
mana_bean_pool.addEntry(new LootEntryItem((new ItemStack(CRItems.MANA_BEAN).getItem()), 1, 0,
61-
new LootFunction[]{new SetCount(new LootCondition[]{new KilledByPlayer(false)}, new RandomValueRange(0, 1)),
62-
new SetNBT(new LootCondition[0], null),
63-
new LootingEnchantBonus(new LootCondition[0], new RandomValueRange(0, 1), 3)},
64-
new LootCondition[0], "crimsonrevelations:mana_bean"));
65-
}
66-
}
67-
6848
// Structures
6949
if (event.getName().equals(LootTableList.CHESTS_DESERT_PYRAMID) || event.getName().equals(LootTableList.CHESTS_SIMPLE_DUNGEON)) {
7050
LootPool main = event.getTable().getPool("main");

0 commit comments

Comments
 (0)