mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
30 lines
1.0 KiB
Java
30 lines
1.0 KiB
Java
package emt.util;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.util.WeightedRandomChestContent;
|
|
import net.minecraftforge.common.ChestGenHooks;
|
|
|
|
import emt.init.EMTItems;
|
|
|
|
public class EMTDungeonChestGenerator {
|
|
|
|
public static void generateLoot() {
|
|
if (!EMTConfigHandler.thorHammerResearch) {
|
|
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(
|
|
new WeightedRandomChestContent(
|
|
new ItemStack(EMTItems.taintedThorHammer),
|
|
0,
|
|
1,
|
|
EMTConfigHandler.chanceTaintedMjolnir));
|
|
}
|
|
if (!EMTConfigHandler.oneRingSpawn) {
|
|
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(
|
|
new WeightedRandomChestContent(
|
|
new ItemStack(EMTItems.onering),
|
|
0,
|
|
1,
|
|
EMTConfigHandler.chanceOneRing));
|
|
}
|
|
}
|
|
}
|