跳到正文

Replace Elytra with Max HP

作者:Zimbada

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 and Elootra projects which I combined to make into this.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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:

  • This is my first modirinth project so if something is off or different, thats why.
  • This was made for version 1.21.8 and I dont plan on backporting it, but may keep up with future versions as needed.
  • If you use this please feel free to let me know if you liked it. I made it because I think the Elytra is OP and makes the game less fun, so I figured Max HP is OP but hopefullly still keeps the game fun. Use it however you like!

常见问题

Replace Elytra with Max HP 支持哪些 Minecraft 版本?

Replace Elytra with Max HP 支持 Minecraft Java 版 1.21.8。下载时注意选择和你游戏版本一致的文件。

Replace Elytra with Max HP 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分