跳到正文

Persistent Health Attributes

作者:Xeoni

A scoreboard driven server-side mod created to make permanent health gain or loss easier.

收藏

介绍

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

Litterally a copy and paste from my documentation google docs

| Element Type | Name | Procedure Use
|————- | ——————|—————|
| Gamerule | DefaultMaxHealth | Default Value: 20 |
| Gamerule | HealthSetOnJoin | Default Value: True |
| Scoreboard | HasPlayerJoined | When player joins world:
If HasPlayerJoined Scoreboard ≠ 1 AND HealthSetOnJoin Gamerule:
→ Set PlayerMaxHealth Scoreboard to 20
→ Set HasPlayerJoined Scoreboard to DefaultMaxHealth Gamerule
| Scoreboard | PlayerMaxHealth | When player respawns:
Run command as the event/target entity:
/attribute @s minecraft:generic.max_health base set <PlayerMaxHealth Scoreboard> |
| Command | /set\_max\_health | Usage: /set_max_health <playername> <max_health>
→ Sets PlayerMaxHealth Scoreboard to <max_health>
→ Run command as the event/target entity:
/attribute @s minecraft:generic.max_health base set <PlayerMaxHealth Scoreboard> |

常见问题

Persistent Health Attributes 支持哪些 Minecraft 版本?

Persistent Health Attributes 支持 Minecraft Java 版 1.19.2,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

Persistent Health Attributes 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Xeoni 的其他作品

查看全部 →