Minecraft mod not working
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);
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);
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)