▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Persistent Health Attributes

Persistent Health Attributes

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

Оцените первым
363
0

Litterally a copy and paste from my documentation google docs

Element TypeNameProcedure Use
GameruleDefaultMaxHealthDefault Value: 20
GameruleHealthSetOnJoinDefault Value: True
ScoreboardHasPlayerJoinedWhen player joins world:
If HasPlayerJoined Scoreboard ≠ 1 AND HealthSetOnJoin Gamerule:
→ Set PlayerMaxHealth Scoreboard to 20
→ Set HasPlayerJoined Scoreboard to DefaultMaxHealth Gamerule
ScoreboardPlayerMaxHealthWhen player respawns:
Run command as the event/target entity:
/attribute @s minecraft:generic.max_health base set <PlayerMaxHealth Scoreboard>
Command/set_max_healthUsage: /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>

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.19.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:
Опубликован:1 год назад
Обновлён:1 год назад
Главная