Skip to content

Commit

Permalink
Merge pull request #9 from encryptionstudio/almondWaterFunctionalityC…
Browse files Browse the repository at this point in the history
…hanged

Almond water is resetting your wretched cycle and restoring 4 hunger bars
  • Loading branch information
encrystudio authored Apr 14, 2024
2 parents 2708a01 + 2ea1552 commit fb38390
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/kpabr/backrooms/items/AlmondWaterItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.kpabr.backrooms.init.BackroomStatusEffects;
import net.minecraft.advancement.criterion.Criteria;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
Expand Down Expand Up @@ -44,8 +43,7 @@ public ItemStack finishUsing(ItemStack stack, World world, LivingEntity user) {
user.removeStatusEffect(StatusEffects.WEAKNESS);
user.removeStatusEffect(StatusEffects.WITHER);

user.addStatusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20 * 10, 1));
user.addStatusEffect(new StatusEffectInstance(StatusEffects.RESISTANCE, 20 * 30, 0));
player.getHungerManager().add(8, 8.0f);

if(wretched.getValue() < 24 && wretched.getValue() + almondMilkRestoring >= 24) {
user.removeStatusEffect(BackroomStatusEffects.RAGGED);
Expand Down

0 comments on commit fb38390

Please sign in to comment.