2016-02-24 05:24:50 +01:00
|
|
|
package techreborn.init;
|
|
|
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.util.WeightedRandomChestContent;
|
|
|
|
import net.minecraftforge.common.ChestGenHooks;
|
2016-02-24 06:07:18 +01:00
|
|
|
import techreborn.items.ItemIngots;
|
2016-02-24 05:24:50 +01:00
|
|
|
|
|
|
|
public class ModLoot {
|
|
|
|
public static WeightedRandomChestContent rubberSaplingLoot = new WeightedRandomChestContent(new ItemStack(ModBlocks.rubberSapling), 1, 3, 50);
|
2016-02-24 06:07:18 +01:00
|
|
|
public static WeightedRandomChestContent copperIngotLoot = new WeightedRandomChestContent(ItemIngots.getIngotByName("copper"), 1, 4, 100);
|
|
|
|
public static WeightedRandomChestContent tinIngotLoot = new WeightedRandomChestContent(ItemIngots.getIngotByName("tin"), 1, 4, 100);
|
2016-02-24 05:24:50 +01:00
|
|
|
|
|
|
|
public static void init(){
|
|
|
|
ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH).addItem(rubberSaplingLoot);
|
|
|
|
ChestGenHooks.getInfo(ChestGenHooks.BONUS_CHEST).addItem(rubberSaplingLoot);
|
|
|
|
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(rubberSaplingLoot);
|
|
|
|
ChestGenHooks.getInfo(ChestGenHooks.PYRAMID_DESERT_CHEST).addItem(rubberSaplingLoot);
|
|
|
|
ChestGenHooks.getInfo(ChestGenHooks.PYRAMID_JUNGLE_CHEST).addItem(rubberSaplingLoot);
|
2016-02-24 06:07:18 +01:00
|
|
|
|
|
|
|
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(copperIngotLoot);
|
|
|
|
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(tinIngotLoot);
|
2016-02-24 05:24:50 +01:00
|
|
|
}
|
|
|
|
}
|