Realistic Stamina Mod
License
This mod is available under the MIT license.
Dependencies for Latest Version
Fabric Api >=0.83.1 for mc 1.20.1
CompleteConfig >=2.4.0 for mc 1.20.1
Roughly Enough Items (Recommended)
Features
This mod adds a stamina and energy system to make getting around more interesting and challenging. You can no longer just sprint infinitely and have to pay attention to your stamina and energy. Its a good thing if you want to make the game more of a challenge while not changing it too much.
Stamina System
The Stamina meter has a default max of 64 and will run out as you sprint. when it turns yellow you will be a bit slower, when it turns orange you will be a lot slower and when it reaches zero you will barely be able to move. It will regenerate if you stop sprinting but will not regenerate if you are in water or climbing.
Energy System
Your energy is a percentage of your maximum stamina. You will slowly lose energy the more stamina you use. Your energy will reset to 100% when you exit a bed so you do not have to skip the night to regenerate your energy. You can also slowly regenerate energy during the day by mounting something like a boat or a horse but you can only regenerate up to 5% this way (Configurable), then you have to sleep. You can drink an energy drink to regenerate 5% of energy.
Fitness System
When enabled, upon sleeping players whose energy is less than 85% will gain a default of 0.25 total stamina. And players whose energy is greater than 92% will lose a default of 0.25 total stamina IF they already have more than the default total. By default, players can reach up to 128.0 stamina points with this system.
Commands
- setTotalStamina - sets a players total stamina.
- resetStaminaStats - resets all a players stamina stats.
- setStaminaLossRate - sets a players stamina loss rate per tick.
- setStaminaGainRate - sets a players stamina gain rate per tick.
- setEnergyLossRate - sets a players energy loss rate per tick
- setEnergyGainRate - sets a players energy gain rate per tick.
Config
Config file path is "config/rstamina.conf".
All Versions
+ Add Version- Improved fitness system and made it more configurable.
- Added fitness system.
- Added option to disable energy system in config.
- Tweaked block breaking stamina penalty.
- Fixed efficiency tools still consuming stamina if you use a shield.
- Breaking blocks with an efficiency tool will not use stamina.
- Added option to disable block breaking using stamina to config.
- Added energy drink.
- Breaking blocks will now take stamina.
- Sneaking will regenerate stamina faster.
- Changed icon.
- Added setTotalStamina command.
- Added resetStaminaStats command.
- Added setStaminaLossRate command.
- Added setStaminaGainRate command.
- Added setEnergyLossRate command.
- Added setEnergyGainRate command
- Updated to 1.20.1
- Fixed some stats not resetting on death.
- Made hud position configurable in config.
- Fixed config not updating existing player states.
- Added maximum amount of energy you can regenerate by resting per sleep.
- Added config file.
- Added resting system.
- Added energy system and energy meter.
- Fixed energy regenerating for everyone when only one player sleeps.
- Fixed server crashing on load.
- Improved UI design.