COWMODSКаталог модов

Health Regeneration Overhaul

This API changes health regeneration to be attribute-driven and (optionally) disables the hunger/saturation system.

Автор: TheRedBrain9,9 тыс.17обновлён 16 апр. 2026 г.
ПриключенияЕдаБиблиотеки

Описание

Health Regeneration Overhaul

This API changes the way health is regenerated. Instead of depending on the hunger system, entity attributes are used.

The vanilla hunger system including exhaustion and saturation is disabled by default.

Additionally, an entity attribute called healthregenerationoverhaul:reserved_health is added and a vanilla bug that clamps player health to a maximum of 20 when respawning/joining a world has been fixed.

Default implementation

Health is regenerated by healthregenerationoverhaul:health_regeneration every healthregenerationoverhaul:health_tick_threshold ticks.

When health is reduced, regeneration is stopped for healthregenerationoverhaul:health_regeneration_delay_threshold ticks.

healthregenerationoverhaul:reserved_health describes the percentage amount of maximum health that is currently not available.

Default attribute values

  • healthregenerationoverhaul:health_regeneration: 0
  • healthregenerationoverhaul:health_tick_threshold: 100
  • healthregenerationoverhaul:health_regeneration_delay_threshold: 100
  • healthregenerationoverhaul:reserved_health: 0

Customization

When the vanilla game rule "natural_health_regeneration" is true, players have 1 additional health regeneration.

In the client config an alternative health bar can be enabled and customised.

The server config has options to set the default value for each attribute (including max_health). This only affects the attribute values for players, not other entities.

Also in the server config, the vanilla food system can be re-enabled.

API

Casting a "LivingEntity" to the "HealthRegeneratingEntity" interface gives access to all relevant methods.

Последние версии

Все версии →
release

4.0.0

4.0.0
16 апр. 2026 г.474Minecraft: 26.1, 26.1.1, 26.1.2fabric
Скачать
Что нового
# 4.0.0 - updated to 26.1.x
release

3.1.0

3.1.0
17 февр. 2026 г.301Minecraft: 1.21.11fabric
Скачать
Что нового
# 3.1.0 - updated to 1.21.11 ## Additions - the custom health icon bar now shows absorption hearts - the custom health icon bar now displays reserved health ## Technical - migrated to Mojang Mappings
release

3.0.0

3.0.0
25 окт. 2025 г.186Minecraft: 1.21.10fabric
Скачать
Что нового
# 3.0.0 - updated to 1.21.10 - icon bar now blinks when health amount changes (like in vanilla) ## Changes - removed "generic." prefix from all entity attributes, following vanillas example
release

2.6.1

2.6.1
5 окт. 2025 г.969Minecraft: 1.21.1fabric
Скачать
Что нового
# 2.6.1 - fixed health being set to 1 when joining a world for the first time - bumped various dependency versions
release

2.6.0

2.6.0
15 сент. 2025 г.86Minecraft: 1.21.1fabric
Скачать
Что нового
# 2.6.0 - added server config options to define the default for each health related attribute (only affects players) and adjusted the default values of those attributes for players - fixed vanilla bug that clamps health to a maximum of 20 when respawning/joining a world
release

2.5.0

2.5.0
30 июл. 2025 г.318Minecraft: 1.21.1fabric
Скачать
Что нового
# 2.5.0 - added alternative health bar consisting of icons, similar to vanillas health bar (this first iteration does not yet support multiple icon types per bar, e.g. absorption hearts) - reworked the "naturalRegeneration" game rule (now works with mods that display attribute values) - fixed an issue where the alternative health bar was visible in creative mode - fixed an issue where the alternative health bar was visible even when the HUD was hidden (pressing F1)
release

1.3.1

1.3.1
16 дек. 2024 г.1,5 тыс.Minecraft: 1.20.1fabric
Скачать
Что нового
# 1.3.1 - fixed an issue where the regeneration delay after taking damage was not applied correctly
release

2.4.1

2.4.1
16 дек. 2024 г.865Minecraft: 1.21.1fabric
Скачать
Что нового
# 2.4.1 - fixed an issue where the regeneration delay after taking damage was not applied correctly
release

2.4.0

2.4.0
9 дек. 2024 г.84Minecraft: 1.21.1fabric
Скачать
Что нового
# 2.4.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. - '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. - added "generic.reserved_health" entity attribute - "generic.health_regeneration" entity attribute can now be negative - changed vanillas "natural regeneration" gamerule to simply add 1 health regeneration. - 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
release

1.3.0

1.3.0
9 дек. 2024 г.243Minecraft: 1.20.1fabric
Скачать
Что нового
# 1.3.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. - '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. - added "generic.reserved_health" entity attribute - "generic.health_regeneration" entity attribute can now be negative - changed vanillas "natural regeneration" gamerule to simply add 1 health regeneration. - 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