Download Health Regeneration Overhaul — Minecraft Mods — MetaMods

Health Regeneration Overhaul

Active

Downloads

8

Last update

1 month ago

Versions

1.20.1 — 1.21.1
Client and server
Fabric
Adventure
Food
Libraries

Health Regeneration Overhaul

This API completely changes the health regeneration mechanism in the game. Instead of the traditional dependency on the hunger system, three new entity attributes are used.

By default, the hunger system, including exhaustion and saturation, is disabled, but it can be activated if necessary through server settings.

Basic Operating Principle

Health regeneration occurs through the _generic.health_regeneration attribute at intervals determined by the _generic.health_tick_threshold parameter (in ticks).

When damage is taken, the regeneration process is temporarily suspended for the period specified by the _generic.health_regeneration_delay_threshold attribute.

Standard Attribute Values

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

Configuration and Customization

If the "naturalRegeneration" parameter is activated in the vanilla game rules, players will have a minimum health regeneration equal to 1.

Through client settings, you can enable and customize an alternative health bar with additional visualization options.

Programming

To access all relevant methods, simply convert the "LivingEntity" object to the "HealthRegeneratingEntity" interface.

Project members
TheRedBrain

TheRedBrain

Developer

Created: 26 May 2024

ID: 12337