I am trying to set a potion after a delay. basically when a block is right-clicked then timers start before said effects start. Im using
Minecraft.getMinecraft().player.addPotionEffect(new PotionEffect(ModPotions.MUNCHIES, 1200, 10, false, false));
and this makes the effect start, but then weird things happen
Gui displays the potion effect, but the actual effect (a hunger copy) doesnt happen, and upon reaching the potion effect end, it just sits, making me believe im missing a step.
When i use
public static final Item EDIBLE_COOKIE = new FoodEffectBase("edible_cookie", 2, 0.1f, false, new PotionEffect(ModPotions.MUNCHIES, 10000, 0, false, false), "This should be fun!");
It works just fine. Effect works as normal. using /effect also works perfectly
So what is it that im missing? I feel like somewhere im missing something obvious...