Finish backporting to 1.18.2

This commit is contained in:
zontreck 2024-01-16 18:29:09 -07:00
parent 68aac66094
commit 7c1c96d2d2
14 changed files with 80 additions and 105 deletions

View file

@ -2,6 +2,7 @@ package dev.zontreck.wmd.checkers;
import dev.zontreck.ariaslib.terminal.Task;
import dev.zontreck.libzontreck.chat.ChatColor;
import dev.zontreck.libzontreck.util.ChatHelpers;
import dev.zontreck.wmd.types.Hunger;
import dev.zontreck.wmd.WatchMyDurability;
import dev.zontreck.wmd.configs.WMDClientConfig;
@ -36,10 +37,10 @@ public class CheckHunger extends Task
{
String Msg = ChatColor.doColors("!Dark_Red!!bold!You need to eat!");
Component chat = Component.literal(Msg);
Component chat = ChatHelpers.macro(Msg);
Minecraft.getInstance().player.displayClientMessage(chat, false);
SoundEvent sv = SoundEvents.WARDEN_ROAR; // It sounds like a growling stomach
SoundEvent sv = SoundEvents.ENDER_DRAGON_GROWL; // It sounds like a growling stomach
Helpers.Soundify(sv);
}