Fixed
- Fixed logic in updateStamina() so that depletion for sprinting and jumping aren't mutually exclusive.
Added
- Enchantments now have descriptions
Changed
- Players are only considered to be wading if they are moving voluntarily in water. This means that you can recover stamina if you are being passively pushed by water.
- Depth Strider now reduces stamina depletion for swimming in the same way that Traveling reduces it for sprinting.
Fixed
- Holding shift while climbing no longer disables stamina depletion
Changed
- Wading (moving in or underwater but not swimming) now incurs the same stamina cost as swimming.
Added
- Recipes for long potions of Fatigue and Tirelessness
Fixed
- Fixed broken potion recipe registration on 1.21
- Added missing translation strings for Splash Potions, Lingering Potions, and Tipped Arrows
[1.3.1] 2024-07-11
Fixed
- Added missing translation string for Tirelessness effect
[1.3.0] 2024-07-04
Added
- Optional stamina cost for each block broken.
- New "Untiring" enchantment for tools
- Reduces stamina depletion for ticks spent mining and blocks broken.
- Three levels, completely eliminates stamina costs for mining at level III.
- Option to increase stamina costs for mining for each level of Efficiency. (Disabled by default.)
- Optional recovery cooldown after any stamina depletion (Disabled by default.)
- This is in addition to the optional cooldown after exhaustion.
[1.2.3] 2024-07-02
Fixed
- Stamina HUD element now hides when hideGui is toggled with F1. (#17)
[1.2.2] 2024-06-30
Fixed
- Swimming upward (jumping in water) now consumes stamina.
- Cleaned up a bunch of ugly code.
Changed
- Changed some default settings for a better out-of-the-box experience.
- Doubled default recovery.
- Reduced exhaustion cost for swimming by half.
- Disabled the "fatigued" exhaustion tier - players are unaffected by fatigue until they become "winded" at 25%
- Enabled a two-second recovery cooldown on exhaustion
- Made the logarithmic recovery function the default.
[1.2.1] 2024-06-25
Have little a bugfix, as a treat.
Fixed
Fixed an error introduced when switching from Yarn to Mojang mappings, which caused the player to start sprinting
on a single tap of the w
key. (#15)
[1.2.0] 2024-06-25
A nice update to the HUD, and some tweaks.
Added
- Option to display stamina in the hud as an icon (that also indicates sprint status)
- Better control over placement of HUD element
- Icon texture can be overridden by resource packs by overriding:
assets/staminafortweakers/textures/stamina/sprint.png
assets/staminafortweakers/textures/stamina/sprint_background.png
assets/staminafortweakers/textures/stamina/walk.png
assets/staminafortweakers/textures/stamina/walk_background.png
Changed
- Added a small cooldown on stamina recovery while mining to keep the stamina display from "bouncing"
- Tweaked exhaustion effects slightly - now Fatigued only inflicts Fatigue I (was previously Fatigue II)
- Added a minimum recovery factor to the Logarithmic recovery formula to make waiting for the last bit of stamina less frustrating
- Extensively reorganized the codebase in ways that should have no effect on behavior, I hope.