Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every tick:
- loop all players:
- set {_health} to health of loop-player*2 + absorption hearts of loop-player
- set {_health} to ceil({_health})
- loop all players:
- set {_sb} to scoreboard of loop-player-2
- if scoreboard objective "healthBottom" in scoreboard {_sb} is not set:
- register new scoreboard objective "healthBottom" with criteria "dummy" in {_sb}
- set scoreboard objective display name of scoreboard objective "healthBottom" in scoreboard {_sb} to "&cā¤"
- set scoreboard objective display slot of scoreboard objective "healthBottom" in scoreboard {_sb} to "BELOW_NAME"
- if scoreboard objective "healthTab" in scoreboard {_sb} is not set:
- register new scoreboard objective "healthTab" with criteria "dummy" in {_sb}
- set scoreboard objective display slot of scoreboard objective "healthTab" in scoreboard {_sb} to "PLAYER_LIST"
- set {_objective} to scoreboard objective "healthBottom" from scoreboard {_sb}
- set {_score} to scoreboard objective {_objective} score of entry "%loop-player-1%"
- set scoreboard score of {_score} to {_health}
- set {_objective} to scoreboard objective "healthTab" from scoreboard {_sb}
- set {_score} to scoreboard objective {_objective} score of entry "%loop-player-1%"
- set scoreboard score of {_score} to {_health}
Advertisement
Add Comment
Please, Sign In to add comment