Search in sources :

Example 1 with ImbueExperience

use of lumien.randomthings.potion.imbues.ImbueExperience 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);
}
Also used : ImbueWither(lumien.randomthings.potion.imbues.ImbueWither) ImbueCollapse(lumien.randomthings.potion.imbues.ImbueCollapse) ImbueExperience(lumien.randomthings.potion.imbues.ImbueExperience) PotionEffect(net.minecraft.potion.PotionEffect) ResourceLocation(net.minecraft.util.ResourceLocation) ImbuePoison(lumien.randomthings.potion.imbues.ImbuePoison) ImbueFire(lumien.randomthings.potion.imbues.ImbueFire) EffectCollapse(lumien.randomthings.potion.effects.EffectCollapse) PotionType(net.minecraft.potion.PotionType) ItemStack(net.minecraft.item.ItemStack)

Aggregations

EffectCollapse (lumien.randomthings.potion.effects.EffectCollapse)1 ImbueCollapse (lumien.randomthings.potion.imbues.ImbueCollapse)1 ImbueExperience (lumien.randomthings.potion.imbues.ImbueExperience)1 ImbueFire (lumien.randomthings.potion.imbues.ImbueFire)1 ImbuePoison (lumien.randomthings.potion.imbues.ImbuePoison)1 ImbueWither (lumien.randomthings.potion.imbues.ImbueWither)1 ItemStack (net.minecraft.item.ItemStack)1 PotionEffect (net.minecraft.potion.PotionEffect)1 PotionType (net.minecraft.potion.PotionType)1 ResourceLocation (net.minecraft.util.ResourceLocation)1