Skip to content

Commit

Permalink
1.0.1 - Added config to change the HUD x and y
Browse files Browse the repository at this point in the history
  • Loading branch information
capybar0 committed Jan 9, 2023
1 parent 3d9bb55 commit 393440a
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -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?**
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
12 changes: 6 additions & 6 deletions src/main/java/net/its0v3r/itsthirst/gui/ThirstHud.java
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/assets/itsthirst/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",





Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/assets/itsthirst/lang/fr_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",





Expand Down
9 changes: 9 additions & 0 deletions src/main/resources/assets/itsthirst/lang/pt_br.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",



Expand Down

0 comments on commit 393440a

Please sign in to comment.