package tech.nevets.vplus.food; import net.minecraft.entity.effect.StatusEffectInstance; import net.minecraft.entity.effect.StatusEffects; import net.minecraft.item.FoodComponent; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import tech.nevets.vplus.items.VPItemGroups; public class EnchantedIronApple extends Item { public EnchantedIronApple() { super(new Settings().group(VPItemGroups.FOOD).food(new FoodComponent.Builder().hunger(6).saturationModifier(10).alwaysEdible().statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20*120, 2),1f).build())); } public boolean hasGlint(ItemStack stack) { return true; } }