Back to mods
Stamina Attributes project artwork

CurseForge · Minecraft mod

Stamina Attributes

A small API that adds a stamina system controlled by entity attributes.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Stamina Attributes release matches 1.21?

Updated 7 months ago
Best match for your filters stamina-attributes-2.1.0.jar
Game version 1.21
Loader Fabric

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.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

All 3 required mods have matching files

Install Fabric API, Cloth Config API (Fabric/Forge/NeoForge), Cloth Config API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Stamina Attributes stamina-attributes-2.1.0.jar
required
Matching file found Matched file: [1.21] Fabric API 0.102.0+1.21
Cloth Config API Needed by Stamina Attributes stamina-attributes-2.1.0.jar
required
Matching file found Matched file: 15.0.140+fabric

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.

  1. 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.

  2. 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.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 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:

  1. 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.
  2. 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.

8 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Stamina Attributes versions and loaders

2 of 31 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.