CurseForge · Minecraft mod
Stamina Attributes
A small API that adds a stamina system controlled by entity attributes.
Quick answer
Which Stamina Attributes release matches 1.21?
Stamina Attributes stamina-attributes-2.1.0.jar targets 1.21 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 3 required mods have matching files.
Where it goes
Is Stamina Attributes required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Stamina Attributes stamina-attributes-2.1.0.jar need?
stamina-attributes-2.1.0.jar on 1.21. Every mod below is checked against that same setup.
Install Fabric API, Cloth Config API (Fabric/Forge/NeoForge), Cloth Config API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Stamina Attributes without breaking your instance.
Built for Stamina Attributes stamina-attributes-2.1.0.jar on 1.21. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use stamina-attributes-2.1.0.jar. It targets 1.21 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API, Cloth Config API (Fabric/Forge/NeoForge), Cloth Config API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside stamina-attributes-2.1.0.jar. It opens that exact file at the source.
About this project
What does Stamina Attributes add?
Stamina Attributes
This API adds a stamina system controlled by entity attributes.
Default implementation
LivingEntities can have up to generic.max_stamina amounts of stamina. Stamina is regenerated by generic.stamina_regeneration every generic.stamina_tick_threshold ticks.
When stamina is reduced, regeneration is stopped for generic.stamina_regeneration_delay_threshold ticks.
When stamina is <= 0, regeneration is stopped for generic.depleted_stamina_regeneration_delay_threshold ticks.
generic.reserved_stamina describes the percentage amount of maximum stamina, that is currently not available.
generic.item_use_stamina_cost is the amount of stamina that is reduced when using an item with a stamina cost.
There are two ways to give an item a stamina cost:
- Items in the "staminaattributes:using_costs_stamina" item tag reduce stamina by generic.item_use_stamina_cost when they are used once. When stamina is < 0 the use action is not performed. In that case the item gets a cooldown, configured in the server config.
- Items in the "staminaattributes:continuous_using_costs_stamina" item tag reduce stamina by generic.item_use_stamina_cost every tick while they are used. When stamina is < 0, the usage is cancelled. In that case the item gets a cooldown, configured in the server config.
Default attribute values
- generic.max_stamina: 10
- generic.stamina_regeneration: 0
- generic.stamina_tick_threshold: 20
- generic.stamina_regeneration_delay_threshold: 20
- generic.depleted_stamina_regeneration_delay_threshold: 60
- generic.reserved_stamina: 0
- generic.item_use_stamina_cost: 0
Default item tags
"staminaattributes:using_costs_stamina":
{
"values": [
"minecraft:snowball"
]
}
"staminaattributes:continuous_using_costs_stamina":
{
"values": [
"minecraft:bow",
"minecraft:crossbow",
"minecraft:shield"
]
}
Customization
When the gamerule "naturalStaminaRegeneration" is true, players have a stamina regeneration of at least 1.
The client config allows customizing the HUD element. The details are explained in this wiki article.
The server config controls the integration with game mechanics, like stamina costs for various actions like jumping.
API
Casting a "LivingEntity" to the "StaminaUsingEntity" interface gives access to all relevant methods.
Project description from CurseForge.
Pick your setup
Stamina Attributes by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.1.2
1 loader build26.1.1
1 loader build26.1
1 loader build1.21.11
1 loader build1.21.10
1 loader build1.21.1
1 loader build1.21
1 loader build1.20.1
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Stamina Attributes versions and loaders
stamina-attributes-2.1.0.jar
26 Jul 2024
stamina-attributes-2.0.0.jar
16 Jul 2024
Looking for an older file? The official CurseForge project page is in Resources.