You can set the duration manually through editing the potion's source code. Under "public static class PotionTypeCustom extends PotionType" you'll find this:
public PotionTypeCustom() {
super(new PotionEffect[]{new PotionEffect(potion, 3600)});
setRegistryName("<YourCustomPotionsName>");
"3600" is the duration in mc ticks. 20 mc ticks = 1 second, so 1 minute = 1200, 2 minutes = 2400 and so on.
This is planned to be added.
Awesome, thanks :)
You are welcome!
You can set the duration manually through editing the potion's source code. Under "public static class PotionTypeCustom extends PotionType" you'll find this:
public PotionTypeCustom() {
super(new PotionEffect[]{new PotionEffect(potion, 3600)});
setRegistryName("<YourCustomPotionsName>");
"3600" is the duration in mc ticks. 20 mc ticks = 1 second, so 1 minute = 1200, 2 minutes = 2400 and so on.