use of net.minecraftforge.common.ChestGenHooks in project RFToolsDimensions by McJty.
the class KnownDimletConfiguration method setupChestLoot.
private static void setupChestLoot(String category) {
List<List<ItemStack>> items = getRandomPartLists();
ChestGenHooks chest = ChestGenHooks.getInfo(category);
chest.addItem(new WeightedRandomChestContent(ModItems.dimletParcelItem, 0, 1, 2, WorldgenConfiguration.dimletParcelRarity));
}
use of net.minecraftforge.common.ChestGenHooks in project Minechem by iopleke.
the class MinechemItemsRegistration method addDungeonLoot.
public static void addDungeonLoot() {
ChestGenHooks ChestProvider = ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST);
ItemStack A = new ItemStack(blueprint, 1, 0);
ItemStack B = new ItemStack(blueprint, 1, 1);
ChestProvider.addItem(new WeightedRandomChestContent(A, 10, 80, 1));
ChestProvider.addItem(new WeightedRandomChestContent(B, 10, 80, 1));
}
Aggregations