Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App
Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Stamina Attributes

Stamina Attributes

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

14.4k
16
Adventure
Game Mechanics
Library
AboutGalleryChangelogVersions

1.6.0

by TheRedBrain on Dec 8, 2024
Download

1.6.0

HUD rendering overhaul The initial idea of splitting a bar into three textures per "layer" to allow for easy change of the bar length, came with the cost of massive FPS drops. With this rewrite the bar size is no longer changeable with a simple config option. Each 'layer' consists of only 1 texture (which can have configurable dimensions). In addition, the texture can be dynamically replaced by another texture (with configurable dimensions) depending on the max value.

  • removed 'is_centered' option, as it was redundant and unnecessarily complicated
  • 'fill_direction' no longer chooses between a horizontal and a vertical 'texture set', it only determines the direction from which the bar is filled. This means that changing between horizontal and vertical resource bars also requires a texture change.
  • added the option to display an icon (with configurable texture id and dimensions). This can be toggled independently of the bar and the number.

2.6.0

by TheRedBrain on Dec 8, 2024
Download

2.6.0

HUD rendering overhaul The initial idea of splitting a bar into three textures per "layer" to allow for easy change of the bar length, came with the cost of massive FPS drops. With this rewrite the bar size is no longer changeable with a simple config option. Each 'layer' consists of only 1 texture (which can have configurable dimensions). In addition, the texture can be dynamically replaced by another texture (with configurable dimensions) depending on the max value.

  • removed 'is_centered' option, as it was redundant and unnecessarily complicated
  • 'fill_direction' no longer chooses between a horizontal and a vertical 'texture set', it only determines the direction from which the bar is filled. This means that changing between horizontal and vertical resource bars also requires a texture change.
  • added the option to display an icon (with configurable texture id and dimensions). This can be toggled independently of the bar and the number.

1.5.0

by TheRedBrain on Dec 6, 2024
Download

1.5.0

  • changed "natural stamina regeneration" gamerule to simply add 1 stamina regeneration. The previous implementation prevented stamina regeneration from ever becoming negative.
  • fixed "offset_from_origin" config values not working correctly
  • stamina number display is now independent of the stamina bar

2.5.0

by TheRedBrain on Dec 6, 2024
Download

2.5.0

  • changed "natural stamina regeneration" gamerule to simply add 1 stamina regeneration. The previous implementation prevented stamina regeneration from ever becoming negative.
  • fixed "offset_from_origin" config values not working correctly
  • stamina number display is now independent of the stamina bar

1.4.0

by TheRedBrain on Dec 4, 2024
Download

1.4.0

  • added "generic.reserved_stamina" entity attribute
  • added "generic.item_use_stamina_cost" entity attribute
  • added "using_costs_stamina" item tag. Using items in this tag costs stamina (contains snowball by default)
  • added "continuous_using_costs_stamina" item tag. Continuously using items in this tag costs stamina (contains bow, crossbow and shield by default)
  • HUD element overhaul, improves mod compatibility, increases customization options
  • server config can now be edited in game (Thanks to Fzzy Config)
  • generally improved config layout
  • removed dependency on Cloth Config
  • added dependency on Fzzy Config
  • added dependency on Resource Bar API

2.4.0

by TheRedBrain on Dec 4, 2024
Download

2.4.0

  • added "generic.reserved_stamina" entity attribute
  • added "generic.item_use_stamina_cost" entity attribute
  • added "using_costs_stamina" item tag. Using items in this tag costs stamina (contains snowball by default)
  • added "continuous_using_costs_stamina" item tag. Continuously using items in this tag costs stamina (contains bow, crossbow and shield by default)
  • HUD element overhaul, improves mod compatibility, increases customization options
  • server config can now be edited in game (Thanks to Fzzy Config)
  • generally improved config layout
  • removed dependency on Cloth Config
  • added dependency on Fzzy Config
  • added dependency on Resource Bar API

2.3.1

by TheRedBrain on Sep 9, 2024
Download

2.3.1

  • fixed some internal issues

2.3.0

by TheRedBrain on Sep 8, 2024
Download

2.3.0

  • further improvements to stamina bar customization

2.2.0

by TheRedBrain on Sep 3, 2024
Download

2.2.0

  • update to 1.21.1
  • improved stamina bar customization

2.1.0

by TheRedBrain on Jul 26, 2024
Download

2.1.0

  • added optional smooth stamina bar animations
  • added a stamina regeneration delay after stamina is reduced, controlled by an entity attribute
  • added a missing translation key

1.3.0

by TheRedBrain on Jul 26, 2024
Download

1.3.0

  • added optional smooth stamina bar animations
  • added a stamina regeneration delay after stamina is reduced, controlled by an entity attribute
  • added a missing translation key

2.0.0

by TheRedBrain on Jun 14, 2024
Download

Update to 1.21

1.2.1

by TheRedBrain on May 24, 2024
Download
  • Fixed an issue with the attribute registration.

1.2.0

by TheRedBrain on May 19, 2024
Download
  • Changed the way the attributes are registered, which increased compatibility with other mods.

1.1.0

by TheRedBrain on May 12, 2024
Download
  • Added more options to configure the HUD element.

1.0.1

by TheRedBrain on May 12, 2024
Download
  • Fixed an issue where some config values where not applied correctly.
  • Fixed an issue where the default stamina regeneration was always 1, even when the corresponding gamerule was set to false.

1.0.0

by TheRedBrain on May 4, 2024
Download

First release!

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+
Filter

Show all versions

Modrinth is open source.

new-project-page@ac78952

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.