I tried to create a thrist mod that would work with peaceful mode, as thats all i play... i did this in MCreator if that matters....

Public class Thrist {
}
int thrist = thrist_bar.png;
int thristValue = playerThirst;
int maxWidth = 80;
int barWidth = thristValue * maxWidth / 100;
return barWidth;
thristTickCounter++;
If (thristTickCounter >= 100) {
playerThirst = Math.max(playerThirst - 1, 0);
thristTickCounter = 0
playerThirst = Math.min(playerThirst + 20, 100);

Voir le contenu lié