So recently I was working on my mod that adds custom potions.
I did manage to make the effect by watching tutorials but couldn't figure out how to add the performEffect so the effect does nothing currently.
Any help?
↓Code that registers it(Main)↓
@SubscribeEventpublicstaticvoid onEffectsRegistry(final RegistryEvent.Register<Effect> effectRegistryEvent){// register a new effect here
LOGGER.info("HELLO from Register Effect");
effectRegistryEvent.getRegistry().registerAll(PotionList.biaseffect =newPotionList.BiasEffect(EffectType.BENEFICIAL,14981690).setRegistryName(newResourceLocation(MOD_ID,"bias_effect")));}
[1.6.1] How to add "performEffect" to my custom potion effect?
in Modder Support
Posted
So recently I was working on my mod that adds custom potions.
I did manage to make the effect by watching tutorials but couldn't figure out how to add the performEffect so the effect does nothing currently.
Any help?
↓Code that registers it(Main)↓
↓Effect Class(PotionList)↓