I need help with adding non vanilla potion effect to my custom food item. Im a beginner so try to explain in easier way please.
I have no idea how to add a different effect than minecraft default ones.
minecraft version 1.19.2
my code:
package net.lukeey.c_mod.item.custom;
import net.minecraft.world.food.FoodProperties;
public class ModFoods {
public static final FoodProperties PILL2 = (new FoodProperties.Builder()).fast().fast().build();
public static final FoodProperties PILL = (new FoodProperties.Builder()).fast().fast().build();
public static final FoodProperties BOTTLE = (new FoodProperties.Builder()).fast().nutrition(1).saturationMod(0.3F).fast().build();
}
yeah im probably just dumb but help pls