nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)

Persistent Health Attributes

Mod

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

Server

13 downloads
0 followers

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>

Project members

Xeoni

Member


Technical information

License
Apache-2.0
Client side
unsupported
Server side
required
Project ID