HomeJavaDatapacksReplace Elytra with Max HP
Replace Elytra with Max HP
DatapacksJava

Replace Elytra with Max HP

by Zimbada · on Modrinth

A datapack and resource pack that replace the Elytra with a "Bottled Heart" potion you can drink to permanently have +1 Max HP. Credit to the Lifesteal…

⬇ Download on Modrinth
Replace Elytra with Max HP — screenshot 1

GAMEPLAY:

Every Elytra in an item frame will be replaced by a Bottled Heart when the Datapack is first activated. Any loaded in Elytras after the activation will also be replaced. Elytras put into an item fram AFTER the activation will not be replaced.

Currently 20 Hearts is the max.

Currently there is no method to subtract or transfer Hearts. (But if you are interested in that, I stole a lot of this from the Lifesteal Datapack, which does have those features.

HOW IT WORKS:

Every tick this datapack checks for item frames without a certain custom tag.

If a frame is found, and it has an Elytra, that Elytra is replaced with custom item and then tagged with the custom tag.

The custom item is a Regeneration potion with an item model set to a custom item from a resource pack, with some custom data, and other aethetic changes.

The custom item model is the "Bottled Heart" png, which is part of the resource pack.

Drinking a potion with the custom data of a Bottled Heart give you an acheivement, which activates a command to increase you Max Health by 1, and then revokes the acheivement.

Thank you to the Lifesteal and Elootra projects for the inspiration and code that I used as a foundation.

Other Notes:

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more