|
9 | 9 | import net.minecraft.world.storage.loot.functions.LootFunction;
|
10 | 10 | import net.minecraft.world.storage.loot.functions.LootingEnchantBonus;
|
11 | 11 | import net.minecraft.world.storage.loot.functions.SetCount;
|
12 |
| -import net.minecraft.world.storage.loot.functions.SetNBT; |
13 | 12 | import net.minecraftforge.event.LootTableLoadEvent;
|
14 | 13 | import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
15 | 14 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
@@ -46,25 +45,6 @@ public static void onLootTableLoad(LootTableLoadEvent event) {
|
46 | 45 | }
|
47 | 46 | }
|
48 | 47 |
|
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 |
| - |
68 | 48 | // Structures
|
69 | 49 | if (event.getName().equals(LootTableList.CHESTS_DESERT_PYRAMID) || event.getName().equals(LootTableList.CHESTS_SIMPLE_DUNGEON)) {
|
70 | 50 | LootPool main = event.getTable().getPool("main");
|
|
0 commit comments