VanillaPlus/src/main/java/tech/nevets/vplus/food/PlatinumApple.java
Steven Tracey 5c3efb5506 Port from EverythingVanilla
TODO: make enchanted apples glow, add ore gen, daggers, golden netherite, villager meat, vertical slabs, aether, reaplant/replenish enchantment.
2021-11-07 22:40:44 -05:00

13 lines
565 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 PlatinumApple extends Item {
public PlatinumApple() {
super(new Settings().group(VPItemGroups.FOOD).food(new FoodComponent.Builder().hunger(16).saturationModifier(20).alwaysEdible().statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20*120, 9),1f).build()));
}
}