Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add health display #1135

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft

Conversation

OhPointFive
Copy link
Contributor

This adds an optional health display below players' names, with the following syntax:

<scoreboard below-name="health"/>

There are a few issues, currently:

  • Firstly, observers can see the health of other observers. I'm not sure if this is fixable — as far as I can tell either someone sees everyone's health or no one's.
  • Until a player takes damage, their health is incorrectly shown as 0, which is fairly clearly not their actual health. As far as I'm aware, this is an issue with vanilla minecraft. This can be overcome by displaying a dummy value in place of health and manually updating it whenever a player's health changes (or possibly every tick) but that's fairly complicated and possibly has other issues.

Signed-off-by: OhPointFive <[email protected]>
@Pablete1234 Pablete1234 marked this pull request as draft February 12, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant