Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Health Regeneration Overhaul

Health Regeneration Overhaul

This API changes how health regeneration works and disables the food system.

3,912
9
Adventure
Food
Library
AboutChangelogVersions

Health Regeneration Overhaul

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

The hunger system including exhaustion and saturation is disabled by default, but it can be re-enabled in the server config.

Default implementation

Health is regenerated by generic.health_regeneration every generic.health_tick_threshold ticks.

When health is reduced, regeneration is stopped for generic.health_regeneration_delay_threshold ticks.

Default attribute values

  • generic.health_regeneration: 0
  • generic.health_tick_threshold: 100
  • generic.health_regeneration_delay_threshold: 100

Customization

When the vanilla gamerule "naturalRegeneration" is true, players have a health regeneration of at least 1.

In the client config an alternative health bar can be enabled and customized. The details are explained in this wiki article.

API

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

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.21.x
1.20.1

Platforms

Fabric

Supported environments

Client and server

Links

Report issues View source Join Discord server

Creators

TheRedBrain
TheRedBrain Member

Details

Licensed MIT
Published last year
Updated 6 months ago

Modrinth is open source.

main@656c5b6

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