public class ItemSuperFood extends ItemFood
{
public ItemSuperFood(int par1, float par2, boolean par3)
{
super(par1, par2, par3);
}
protected void onFoodEaten(ItemStack item, World world, EntityPlayer player)
{
if (!world.isRemote)
{
player.addPotionEffect(new PotionEffect(Potion, 2400, 0)); //Potion - название эффекта. 2400 - секунды. 0 - сила
}
}
}