Persistent Health Attributes

模组

· 作者 Xeoni

一个基于记分板的服务器端模组,旨在让永久性的生命值增减变得更加便捷。

0 本站下载 0 关注 更新于 1 年前

最新 1.0.0 · 1.19.2 · Fabric / Quilt

一键开服(送7天)

这基本上是我 Google Docs 文档的复制粘贴内容

元素类型 名称 使用方法
Gamerule DefaultMaxHealth 默认值:20
Gamerule HealthSetOnJoin 默认值:True
Scoreboard HasPlayerJoined 玩家加入世界时:
如果 HasPlayerJoined 计分板 ≠ 1 且 HealthSetOnJoin Gamerule:
→ 将 PlayerMaxHealth 计分板设置为 20
→ 将 HasPlayerJoined 计分板设置为 DefaultMaxHealth Gamerule
Scoreboard PlayerMaxHealth 玩家重生时:
以事件/目标实体身份运行命令:
/attribute @s minecraft:generic.max_health base set <PlayerMaxHealth Scoreboard>
Command /set_max_health 用法:/set_max_health <playername> <max_health>
→ 将 PlayerMaxHealth 计分板设置为 <max_health>
→ 以事件/目标实体身份运行命令:
/attribute @s minecraft:generic.max_health base set <PlayerMaxHealth Scoreboard>

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源