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 should I use?

Updated 5 months ago
Latest stable file 4.0.1
Game version 26.1, 26.1.1, 26.1.2
Loader Fabric

Stamina Attributes 4.0.1 targets 26.1, 26.1.1, 26.1.2 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. All 4 required mods have matching files.

Where it goes

Is Stamina Attributes required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
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 marks this as usable on both the client and server.

What else does Stamina Attributes 4.0.1 need?

4.0.1. Change the file and its required mods may change too.

All 4 required mods have matching files

Install Fabric API, Fzzy Config, Resource Bar API, Fabric Language Kotlin first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

3 listed on this file 1 pulled in by one of those mods
Fabric API Needed by Stamina Attributes 4.0.1
required
Matching file found Matched file: 0.155.3+26.1.2
Fzzy Config Needed by Stamina Attributes 4.0.1
required
Matching file found Matched file: 0.7.7+26.1
Resource Bar API Needed by Stamina Attributes 4.0.1
required
Matching file found Matched file: 4.0.0
Fabric Language Kotlin Needed by Fzzy Config
pulled in
Matching file found Matched file: 1.14.1+kotlin.2.4.20

1 extra mod was pulled in by another dependency. Indented rows show who needs each one. 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 4.0.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 4.0.1. It targets 26.1, 26.1.1, 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API, Fzzy Config, Resource Bar API, Fabric Language Kotlin first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 4.0.1. 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

31 of 31 releases match

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