Realistic Stamina
License
This modification is distributed under the MIT license.
Required Dependencies
For the correct operation of the latest version of the mod, the following are required: Fabric API version 0.83.1 or higher for Minecraft 1.20.1, CompleteConfig version 2.4.0 or higher for Minecraft 1.20.1. Roughly Enough Items is also recommended.
Main Features
This mod introduces a realistic stamina and energy system into the game, making movement through the world more interesting and challenging. You can no longer sprint indefinitely - you'll need to monitor your stamina and energy levels. An excellent solution for those who want to add additional difficulty to the game without radically changing the gameplay.
Stamina System
The stamina bar defaults to a maximum of 64 units and gradually decreases during sprinting. When the indicator turns yellow, your speed slightly decreases; with an orange color, the slowdown becomes significant, and when completely depleted, you can barely move. Stamina recovers if you stop running but does not regenerate in water or while climbing.
Energy System
The energy level represents a percentage of maximum stamina. The more stamina you expend, the slower your energy decreases. Energy fully restores to 100% after sleeping in a bed, so you don't necessarily need to skip the night for recovery. You can also slowly restore energy during the day while on transportation (boat, horse), but this method can restore no more than 5% (configurable), after which sleep is required. For quick recovery, you can use an energy drink that restores 5% energy.
Fitness System
When this feature is activated, players with energy levels below 85% after sleep receive a bonus to total stamina (default +0.25). Players with energy above 92% lose some stamina (default -0.25) if their current indicator exceeds the base level. The maximum possible stamina level in this system is 128 units.
Commands
- setTotalStamina - sets the player's total stamina
- resetStaminaStats - resets all of the player's stamina statistics
- setStaminaLossRate - sets the stamina loss rate per tick
- setStaminaGainRate - sets the stamina recovery rate per tick
- setEnergyLossRate - sets the energy loss rate per tick
- setEnergyGainRate - sets the energy recovery rate per tick
Settings
The configuration file is located at "config/rstamina.conf".