Mineuniverse
Mods
Stamina Attributes

Stamina Attributes

MOD
A small API that adds a stamina system controlled by entity attributes.
by TheRedBrain
Download Claim this project
Add a badge to your pageLink to Stamina Attributes from a README, website or forum post.
Preview: Badge

Badges update automatically and link to the mod page on MineUniverse.

91,127 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Adventure and RPG API and Library
Advertisement Remove ads with Premium →

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.

stamina-attributes-4.0.0.jar
MC Client, Fabric, Server, 26.1, 26.1.1, 26.1.2
Release 2026-04-15 Get
stamina-attributes-3.1.0.jar
MC Client, Fabric, Server, 1.21.11
Release 2026-01-25 Get
stamina-attributes-3.0.0.jar
MC Fabric, 1.21.10
Release 2025-10-25 Get
stamina-attributes-2.9.2.jar
MC Fabric, Client, 1.21.1, Server
Release 2025-10-05 Get
stamina-attributes-2.9.1.jar
MC Fabric, 1.21.1
Release 2025-09-15 Get
stamina-attributes-2.9.0.jar
MC Fabric, 1.21.1
Release 2025-08-27 Get
stamina-attributes-2.8.0.jar
MC Fabric, 1.21.1
Release 2025-08-26 Get
stamina-attributes-2.7.0.jar
MC Fabric, 1.21.1
Release 2025-07-30 Get
stamina-attributes-2.6.0.jar
MC Fabric, 1.21.1
Release 2024-12-08 Get
stamina-attributes-1.6.0.jar
MC Fabric, 1.20.1
Release 2024-12-08 Get
stamina-attributes-2.5.0.jar
MC Fabric, 1.21.1
Release 2024-12-06 Get
stamina-attributes-1.5.0.jar
MC Fabric, 1.20.1
Release 2024-12-06 Get
stamina-attributes-2.4.0.jar
MC Fabric, 1.21.1
Release 2024-12-04 Get
stamina-attributes-1.4.0.jar
MC Fabric, 1.20.1
Release 2024-12-04 Get
stamina-attributes-2.3.1.jar
MC Fabric, 1.21.1
Release 2024-09-09 Get
stamina-attributes-2.2.0.jar
MC Fabric, 1.21.1
Release 2024-09-03 Get
stamina-attributes-1.3.0.jar
MC Fabric, 1.20.1
Release 2024-07-26 Get
stamina-attributes-2.1.0.jar
MC 1.21, Fabric
Release 2024-07-26 Get
stamina-attributes-2.0.0.jar
MC 1.21, Fabric, Client, Server
Release 2024-07-16 Get
stamina-attributes-1.2.1.jar
MC Fabric, Client, 1.20.1, Server
Release 2024-07-09 Get

More from TheRedBrain

Advertisement Remove ads with Premium →

You Might Also Like