Minecraft – How to add a scoreboard listing the health of other players when I press TAB

minecraft-commandsminecraft-java-edition

I really need to know how to set a command where the health of a player can be seen when you press TAB in-game. It must show the players amount of hearts as displayed on the top of their hotbar in-game. I hope you get the point of what I'm trying to say and I hope you can help me!

Best Answer

Create an objective for players' health values:

/scoreboard objectives add health health

Set the objective to display in the TAB list:

/scoreboard objectives setdisplay list health
Related Topic