How do I add a scoreboard listing the health of other players when I press TAB?

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!

2

1 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

You Might Also Like