Скачать Health Regeneration Overhaul — Minecraft Моды — ModStock

Health Regeneration Overhaul

Активный

Установок

8

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

6 месяцев назад

Версии

1.20.1 — 1.21.1
Клиент и сервер
Fabric
Приключенческие
Еда
Библиотеки

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.healthregeneration every _generic.health_tickthreshold ticks.

When health is reduced, regeneration is stopped for _generic.health_regeneration_delaythreshold ticks.

Default attribute values

  • _generic.healthregeneration: 0
  • _generic.health_tickthreshold: 100
  • _generic.health_regeneration_delaythreshold: 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.

Участники проекта
TheRedBrain

TheRedBrain

Разработчик