From f0b8ee96ece5221f51c2af920f87ae3be42e691c Mon Sep 17 00:00:00 2001 From: SLH335 <114884726+SLH335@users.noreply.github.com> Date: Sun, 3 Sep 2023 16:51:07 +0200 Subject: [PATCH] Add rarities to Netherite Apples --- src/main/java/xyz/hafemann/netheriteextras/item/ModItems.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/xyz/hafemann/netheriteextras/item/ModItems.java b/src/main/java/xyz/hafemann/netheriteextras/item/ModItems.java index ed37fcb..82b24bf 100644 --- a/src/main/java/xyz/hafemann/netheriteextras/item/ModItems.java +++ b/src/main/java/xyz/hafemann/netheriteextras/item/ModItems.java @@ -21,7 +21,7 @@ public class ModItems { .statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 200, 1), 1.0F) .statusEffect(new StatusEffectInstance(StatusEffects.FIRE_RESISTANCE, 3000, 0), 1.0F) .statusEffect(new StatusEffectInstance(StatusEffects.ABSORPTION, 2400, 2), 1.0F) - .alwaysEdible().build()).fireproof())); + .alwaysEdible().build()).rarity(Rarity.RARE).fireproof())); public static final Item ENCHANTED_NETHERITE_APPLE = registerItem("enchanted_netherite_apple", new EnchantedGoldenAppleItem(new Item.Settings().food((new FoodComponent.Builder()).hunger(6).saturationModifier(1.2F) .statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 800, 2), 1.0F) @@ -30,7 +30,7 @@ public class ModItems { .statusEffect(new StatusEffectInstance(StatusEffects.ABSORPTION, 4800, 5), 1.0F) .statusEffect(new StatusEffectInstance(StatusEffects.SPEED, 200, 1), 1.0F) .statusEffect(new StatusEffectInstance(StatusEffects.STRENGTH, 200, 1), 1.0F) - .alwaysEdible().build()).fireproof())); + .alwaysEdible().build()).rarity(Rarity.EPIC).fireproof())); public static final Item TOTEM_OF_NEVERDYING = registerItem("totem_of_neverdying", new Item(new Item.Settings().maxCount(1).maxDamage(4).rarity(Rarity.UNCOMMON).fireproof()));