Перейти к содержимому
Mineforgian

Stackable Absorption Hearts

A datapack that lets you increase the level of the Absorption effect by eating multiple Golden Apples

Загрузки
483
Подписчики
7
Обновлён
16 июня 2026 г.
Лицензия
MIT

Опубликован 14 февраля 2025 г.

This Datapack makes it so eating multiple Golden Apples or Enchanted Golden Apples increases the level of the Absorption effect (yellow hearts), instead of only resetting its duration.

The image shows the player with 18 hearts of Absorption, which is the result of eating two enchanted golden apples and a normal Golden Apple

This means eating two Golden Apples back to back will give you 4 extra hearts for the next 120 seconds. If you eat another Golden Apple before the duration is up, the hearts will be increased by another two and the duration will reset back to 120 seconds.

There is three versions of this datapack:

  • Gradual Decrease: The stack of hearts currently active slowly decreases by 2 hearts ever 120 seconds. Personally I recommend this version!
  • Instant Decay: The stack of hearts is removed all at once as soon as the 120s of duration are up
  • No Stacking: The stack of hearts decreases by 2 hearts every 2 minutes. However eating multiple golden apples will NOT increase the absorption level

Additional information

  • A normal Golden Apple will add 2 hearts
  • An Enchanted Golden Apple will add 8 hearts
  • By default, the maximum amount of hearts you can gain is 200. This value can be adjusted in the "data/stacking_golden_apples/fuction/apply_stacked_effect.mcfunction" file

Installation: This datapack is installed like all other datapacks. A tutorial on how to do that can be found here on the wiki.

Bugs: If you find any bugs with this datapack, please open a new issue here

Ченджлог

v4_Gradual_DecreaseРелиз26.1.1, 26.1.2, 26.2 · 16 июня 2026 г.

Minor changes to the datapack display when adding the datapack during world creation.

v3_NO_StackingБета26.1.1, 26.1.2, 26.2 · 16 июня 2026 г.

This version of the datapack only causes the 8 hearts of absorption from Enchanted Golden Apples to decrease gradually by 2 hearts every 2 minutes.

It does not stack the absorption effect when eating multiple golden apples!

I just made this version cause the code changes are minimal and it makes this a much less overpowered version of the original datapack. This way it's just a slight buff for Enchanted Golden Apples.

v3_Gradual_DecreaseРелиз26.1.1, 26.1.2, 26.2 · 22 февраля 2025 г.

Fixed bugs:

  • Loop scheduling didn't work reliably on servers, so it is now moved to tick.mcfunction. This means it gets executed reliably, however it no longer gets shut off when no golden apple duration countdown are active
  • Exceeding max level would clear all effects instead of just clearing absorption
v2_Gradual_DecreaseРелиз1.21.2, 1.21.3, 1.21.4 · 16 февраля 2025 г.

Fixed two major bugs:

  • Damage to the player is now properly taken into consideration. Previously taking damage would not lower the hidden Absorption value, so when eating another golden apple or when the stack would decrease by one, the old stack value was used. This meant you could lose the entire stack due to damage but you would get it back after the effect duration was up. This is now no longer the case
  • When joining a world with a stacked effect, the datapack now properly builds on that stack again. Previously it wouldn't be able to take stacks from previous sessions into account
v1_Gradual_DecreaseРелиз1.21.2, 1.21.3, 1.21.4 · 16 февраля 2025 г.

Initial Upload of the "Gradual Decrease" version of the datapack

Tested in 1.21.1, but shoud work in the other 1.21 versions as well.

v1_Instant_DecayБета1.21.1 · 14 февраля 2025 г.

Initial Upload

Tested in 1.21.1, but should work for all 1.21 versions.

Комментарии

Загружаем…