use of lumien.randomthings.potion.imbues.ImbueCollapse in project Random-Things by lumien231.
the class ModPotions method preInit.
public static void preInit(FMLPreInitializationEvent event) {
imbueFire = new ImbueFire();
imbuePoison = new ImbuePoison();
imbueExperience = new ImbueExperience();
imbueWither = new ImbueWither();
imbueCollapse = new ImbueCollapse();
collapse = new EffectCollapse();
collapseType = new PotionType("rtcollapse", new PotionEffect(collapse, 450));
collapseTypeLong = new PotionType("rtcollapse", new PotionEffect(collapse, 900));
collapseTypeStrong = new PotionType("rtcollapse", new PotionEffect(collapse, 300, 1));
collapseType.setRegistryName(new ResourceLocation("randomthings", "collapse"));
collapseTypeLong.setRegistryName(new ResourceLocation("randomthings", "long_collapse"));
collapseTypeStrong.setRegistryName(new ResourceLocation("randomthings", "strong_collapse"));
ForgeRegistries.POTION_TYPES.register(collapseType);
ForgeRegistries.POTION_TYPES.register(collapseTypeLong);
ForgeRegistries.POTION_TYPES.register(collapseTypeStrong);
// Brewing
PotionHelper.addMix(PotionTypes.AWKWARD, Ingredient.fromStacks(new ItemStack(ModItems.ingredients, 1, 0)), collapseType);
PotionHelper.addMix(collapseType, Items.REDSTONE, collapseTypeLong);
PotionHelper.addMix(collapseType, Items.GLOWSTONE_DUST, collapseTypeStrong);
}
Aggregations