游戏机制:
当数据包首次激活时,所有处于物品展示框中的鞘翅都会被替换为瓶装心。在激活后加载入世界的鞘翅也会被替换。但在激活之后放入物品展示框的鞘翅则不会被替换。
目前最多可拥有 20 颗心。
目前尚不支持扣除或转移心数。(不过,如果你对这一功能感兴趣,我借鉴了大量来自 Lifesteal 数据包的代码,该数据包具备这些功能。)
工作原理:
每个游戏刻(tick),此数据包都会检查是否存在缺少特定自定义标签的物品展示框。
如果找到这样的展示框且其中装有鞘翅,则该鞘翅会被替换为自定义物品,并添加自定义标签。
该自定义物品是一个具有再生效果药水,其物品模型由资源包中的自定义物品设定,并包含一些自定义数据及其他外观上的调整。
自定义物品模型是“Bottled Heart”PNG 图片,属于资源包的一部分。
饮用具有“瓶中之心”自定义数据的药水会获得一个成就,该成就会激活一条指令将你的最大生命值增加 1,随后撤销该成就。
感谢 Lifesteal 和 Elootra 项目提供的灵感以及我用作基础代码的支持。
其他说明:
- 这是我的第一个 modirinth 项目,所以如果有什么地方不对劲或不同,那就是原因所在。
- 此内容是为 1.21.8 版本制作的,我不打算向后移植到旧版本,但会根据需要跟进后续版本。
- 如果你使用了它,请随时告诉我你是否喜欢它。我制作它是觉得鞘翅(Elytra)过于强大,让游戏变得不那么有趣,所以我认为最大生命值上限过高虽然也很强,但希望仍然能保持游戏的趣味性。你可以随意使用!
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!
评论 0
登录后参与评分
还没有评论,来抢沙发吧