TODO: make enchanted apples glow, add ore gen, daggers, golden netherite, villager meat, vertical slabs, aether, reaplant/replenish enchantment.
13 lines
585 B
Java
13 lines
585 B
Java
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 tech.nevets.vplus.items.VPItemGroups;
|
|
|
|
public class EnchantedNetheriteApple extends Item {
|
|
public EnchantedNetheriteApple() {
|
|
super(new Settings().group(VPItemGroups.FOOD).food(new FoodComponent.Builder().hunger(14).saturationModifier(18).alwaysEdible().statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20*120, 8),1f).build()));
|
|
}
|
|
} |