Update to 1.1.1.2

This commit is contained in:
Zontreck 2022-10-13 21:32:10 -07:00
parent 9507923f86
commit 5a70c8f072
5 changed files with 22 additions and 17 deletions

View file

@ -55,13 +55,15 @@ public class CheckInventory extends TimerTask
// Good to proceed
if(current.shouldGiveAlert())
{
Minecraft.getInstance().player.displayClientMessage(Component.literal(ChatColorFactory.MakeBuilder().set(ColorOptions.Dark_Red).set(ColorOptions.Bold).toString()+"You need to eat!"), false);
String Msg = ChatColor.doColors("!Dark_Red!!bold!You need to eat!");
Minecraft.getInstance().player.displayClientMessage(Component.literal(Msg), false);
SoundEvent sv = SoundEvents.WARDEN_ROAR;
SoundEvent sv = SoundEvents.WARDEN_ROAR; // It sounds like a growling stomach
Soundify(sv);
}
WatchMyDurability.LastHealth=current;
}
public void PushItems(String type, List<ItemStack> stack)
@ -111,7 +113,8 @@ public class CheckInventory extends TimerTask
SoundEvent theSound = SoundEvents.ITEM_BREAK;
Soundify(theSound);
Component X = Component.literal(replaced);
Minecraft.getInstance().player.displayClientMessage(X, false);
break; // Rule applies, break out of this loop, move to next item.