mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
22 lines
663 B
Java
22 lines
663 B
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));
|
|
}
|
|
}
|
|
}
|