I have a custom map in which I have a scoreboard objective. Is there any way to change a player's health based on this scoreboard objective? The only thing I could find was putting a button on a player's head with the max health attribute but that has many disadvantages.
Minecraft – Change players health based on scoreboard objectives
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – (Java Minecraft 1.14) Scoreboard objective for ghast fireballs deflected
- Minecraft – Alternatives for setting up a digital clock in the scoreboard sidebar 1.15.2
- Minecraft – How to make multicoloured scoreboard fake player names
- Minecraft – way to put spaces in a scoreboard player name
- Minecraft – Can scoreboard triggers be disabled
Best Answer
1st: /scoreboard objectives add [name] health [display name]
Add any name to name and display name
2nd: /scoreboard objectives setdisplay belowname [name]
Set the name you want to display at the scoreboard at name
(Your health will show up as 0 until you lose some...it's a bug)