diff --git a/README.MD b/README.MD index 9712ed4..0e5d0c6 100644 --- a/README.MD +++ b/README.MD @@ -1,4 +1,4 @@ -# It's Thirst 1.0.0 - Minecraft Mod for 1.19.2 +# It's Thirst 1.0.1 - Minecraft Mod for 1.19.2 ![It's Thirst](https://i.imgur.com/mEztvlI.png) @@ -24,6 +24,7 @@ It's Thirst is a lightweight Thirst Mod that doesn't add new blocks or items and - Make empty bottles and water bottles stack from 1 to 64 (tweakable); - Allow the player to eat hydrating food even when the hunger bar is full (tweakable); - Thirst points drain faster in nether (tweakable); +- Change the thirst bar X and Y position; ## 📝 Frequently Asked Questions **Q: Can I use this mod in my modpack or make videos about it?** diff --git a/gradle.properties b/gradle.properties index 3389da8..84dc9d5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ org.gradle.parallel=true loader_version=0.14.12 # Mod Properties - mod_version = 1.0.0-1.19.2 + mod_version = 1.0.1-1.19.2 maven_group = net.its0v3r archives_base_name = its-thirst diff --git a/src/main/java/net/its0v3r/itsthirst/config/VanillaThirstConfig.java b/src/main/java/net/its0v3r/itsthirst/config/VanillaThirstConfig.java index f7beaea..fd0f87a 100644 --- a/src/main/java/net/its0v3r/itsthirst/config/VanillaThirstConfig.java +++ b/src/main/java/net/its0v3r/itsthirst/config/VanillaThirstConfig.java @@ -142,4 +142,14 @@ public class VanillaThirstConfig implements ConfigData { @ConfigEntry.Gui.Tooltip(count = 3) @ConfigEntry.BoundedDiscrete(min = 1, max = 3) public int nether_thirst_bar_texture = 1; + + // Hud X + @ConfigEntry.Category("hud_position_settings") + @ConfigEntry.Gui.Tooltip(count = 3) + public int hud_x = 0; + + // Hud X + @ConfigEntry.Category("hud_position_settings") + @ConfigEntry.Gui.Tooltip(count = 3) + public int hud_y = 0; } diff --git a/src/main/java/net/its0v3r/itsthirst/gui/ThirstHud.java b/src/main/java/net/its0v3r/itsthirst/gui/ThirstHud.java index bb886d8..b3a8fea 100644 --- a/src/main/java/net/its0v3r/itsthirst/gui/ThirstHud.java +++ b/src/main/java/net/its0v3r/itsthirst/gui/ThirstHud.java @@ -61,8 +61,8 @@ public static void renderThirstHud(MatrixStack matrixStack, MinecraftClient clie for (int i = 0; i < 10; i++) { bounceFactor = getBounceFactor(playerEntity, ticks, thirstManager); DrawableHelper.drawTexture(matrixStack, - width + 82 - (i * 9) + i, - height - 49 + bounceFactor, + (width + 82 - (i * 9) + i) + ConfigRegistry.CONFIG.hud_x, + (height - 49 + bounceFactor) + ConfigRegistry.CONFIG.hud_y, 0 + netherYFactor, 0, 9, @@ -77,8 +77,8 @@ public static void renderThirstHud(MatrixStack matrixStack, MinecraftClient clie if (((thirstValue + 1) / 2) > i) { bounceFactor = getBounceFactor(playerEntity, ticks, thirstManager); DrawableHelper.drawTexture(matrixStack, - width + 82 - (i * 9) + i, - height - 49 + bounceFactor, + (width + 82 - (i * 9) + i) + ConfigRegistry.CONFIG.hud_x, + (height - 49 + bounceFactor) + ConfigRegistry.CONFIG.hud_y, 9 + thirstEffectFactor + netherXFactor, 9, 9, @@ -97,8 +97,8 @@ public static void renderThirstHud(MatrixStack matrixStack, MinecraftClient clie if ((thirstValue / 2) > i) { bounceFactor = getBounceFactor(playerEntity, ticks, thirstManager); DrawableHelper.drawTexture(matrixStack, - width + 82 - (i * 9) + i, - height - 49 + bounceFactor, + (width + 82 - (i * 9) + i) + ConfigRegistry.CONFIG.hud_x, + (height - 49 + bounceFactor) + ConfigRegistry.CONFIG.hud_y, 0 + thirstEffectFactor + netherXFactor, 9, 9, diff --git a/src/main/resources/assets/itsthirst/lang/en_us.json b/src/main/resources/assets/itsthirst/lang/en_us.json index 3a6d9c8..0651fbf 100644 --- a/src/main/resources/assets/itsthirst/lang/en_us.json +++ b/src/main/resources/assets/itsthirst/lang/en_us.json @@ -151,6 +151,17 @@ "text.autoconfig.itsthirst.option.nether_thirst_bar_texture.@Tooltip[2]": "Default is: 1", + "text.autoconfig.itsthirst.option.hud_x": "Thirst Bar X position", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[0]": "Defines the position in the X axis of the thirst bar", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[1]": "Bigger values means the thirst bar will move to the right", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[2]": "Default is: 0", + + "text.autoconfig.itsthirst.option.hud_y": "Thirst Bar Y position", + "text.autoconfig.itsthirst.option.hud_y.@Tooltip[0]": "Defines the position in the Y axis of the thirst bar", + "text.autoconfig.itsthirst.option.hud_y.@Tooltip[1]": "Bigger values means the thirst bar will move to the down", + "text.autoconfig.itsthirst.option.hud_y.@Tooltip[2]": "Default is: 0", + + diff --git a/src/main/resources/assets/itsthirst/lang/fr_fr.json b/src/main/resources/assets/itsthirst/lang/fr_fr.json index 97cf0a5..8c11696 100644 --- a/src/main/resources/assets/itsthirst/lang/fr_fr.json +++ b/src/main/resources/assets/itsthirst/lang/fr_fr.json @@ -152,6 +152,17 @@ "text.autoconfig.itsthirst.option.nether_thirst_bar_texture.@Tooltip[2]": "Le Standard: 1", + "text.autoconfig.itsthirst.option.hud_x": "Position X de la barre de soif", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[0]": "Définit la position sur l'axe X de la barre de soif", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[1]": "Des valeurs plus grandes signifient que la barre de soif se déplacera vers la droite", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[2]": "Le Standard: 0", + + "text.autoconfig.itsthirst.option.hud_y": "Position Y de la barre de soif", + "text.autoconfig.itsthirst.option.hud_y.@Tooltip[0]": "Définit la position sur l'axe Y de la barre de soif", + "text.autoconfig.itsthirst.option.hud_y.@Tooltip[1]": "Des valeurs plus élevées signifient que la barre de soif descendra", + "text.autoconfig.itsthirst.option.hud_y.@Tooltip[2]": "Le Standard: 0", + + diff --git a/src/main/resources/assets/itsthirst/lang/pt_br.json b/src/main/resources/assets/itsthirst/lang/pt_br.json index 7a00d5c..9e266ad 100644 --- a/src/main/resources/assets/itsthirst/lang/pt_br.json +++ b/src/main/resources/assets/itsthirst/lang/pt_br.json @@ -151,6 +151,15 @@ "text.autoconfig.itsthirst.option.nether_thirst_bar_texture.@Tooltip[2]": "O padrão é: 1", + "text.autoconfig.itsthirst.option.hud_x": "Posição X da barra de sede", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[0]": "Define a posição no eixo X para a barra de sede", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[1]": "Valores maiores significam que a barra de sede irá se mover para a direita", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[2]": "O padrão é: 0", + + "text.autoconfig.itsthirst.option.hud_x": "Posição Y da barra de sede", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[0]": "Define a posição no eixo Y para a barra de sede", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[1]": "Valores maiores significam que a barra de sede irá se mover para baixo", + "text.autoconfig.itsthirst.option.hud_x.@Tooltip[2]": "O padrão é: 0",