
Health Regeneration Overhaul
This API changes health regeneration to be attribute-driven and (optionally) disables the hunger/saturation system.
Обновлён 16 апреля 2026 г. · опубликован 25 мая 2024 г.
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.
Версии
| Версия | Канал | Игра | Загрузчики | Дата | Скачать |
|---|---|---|---|---|---|
| 4.0.0 | Релиз | 26.1, 26.1.1, 26.1.2 | fabric | 16 апреля 2026 г. | .jar (112 КБ) |
| 3.1.0 | Релиз | 1.21.11 | fabric | 17 февраля 2026 г. | .jar (112 КБ) |
| 3.0.0 | Релиз | 1.21.10 | fabric | 25 октября 2025 г. | .jar (111 КБ) |
| 2.6.1 | Релиз | 1.21.1 | fabric | 5 октября 2025 г. | .jar (109 КБ) |
| 2.6.0 | Релиз | 1.21.1 | fabric | 15 сентября 2025 г. | .jar (108 КБ) |
| 2.5.0 | Релиз | 1.21.1 | fabric | 30 июля 2025 г. | .jar (104 КБ) |
| 1.3.1 | Релиз | 1.20.1 | fabric | 16 декабря 2024 г. | .jar (98 КБ) |
| 2.4.1 | Релиз | 1.21.1 | fabric | 16 декабря 2024 г. | .jar (98 КБ) |
| 2.4.0 | Релиз | 1.21.1 | fabric | 9 декабря 2024 г. | .jar (98 КБ) |
| 1.3.0 | Релиз | 1.20.1 | fabric | 9 декабря 2024 г. | .jar (98 КБ) |
| 2.3.0 | Релиз | 1.21.1 | fabric | 8 сентября 2024 г. | .jar (76 КБ) |
| 2.2.0 | Релиз | 1.21.1 | fabric | 2 сентября 2024 г. | .jar (74 КБ) |
| 1.2.1 | Релиз | 1.20.1 | fabric | 22 августа 2024 г. | .jar (65 КБ) |
| 2.1.0 | Релиз | 1.21 | fabric | 25 июля 2024 г. | .jar (66 КБ) |
| 1.2.0 | Релиз | 1.20.1 | fabric | 25 июля 2024 г. | .jar (65 КБ) |
Показаны последние 15 из 18 версий. Все версии — на Modrinth.
Ченджлог
4.0.0Релиз26.1, 26.1.1, 26.1.2 · 16 апреля 2026 г.
4.0.0
- updated to 26.1.x
3.1.0Релиз1.21.11 · 17 февраля 2026 г.
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
3.0.0Релиз1.21.10 · 25 октября 2025 г.
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
2.6.1Релиз1.21.1 · 5 октября 2025 г.
2.6.1
- fixed health being set to 1 when joining a world for the first time
- bumped various dependency versions
2.6.0Релиз1.21.1 · 15 сентября 2025 г.
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
2.5.0Релиз1.21.1 · 30 июля 2025 г.
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)
1.3.1Релиз1.20.1 · 16 декабря 2024 г.
1.3.1
- fixed an issue where the regeneration delay after taking damage was not applied correctly
2.4.1Релиз1.21.1 · 16 декабря 2024 г.
2.4.1
- fixed an issue where the regeneration delay after taking damage was not applied correctly
Полная история изменений — на Modrinth.
Комментарии
Загружаем…