I am trying to make a food item that when eaten gives the user multiple effects like the golden apple from vanilla minecraft.
this.setPotionEffect(Potion.regeneration.id, 50, 5, 100);
this.setPotionEffect(Potion.fireResistance.id, 500, 1, 100);
Is the code I am using but the user only gets the Fire resistance effect and not regeneration. Please help!