akon1248

Untitled

Dec 5th, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. every tick:
  2. loop all players:
  3. set {_health} to health of loop-player*2 + absorption hearts of loop-player
  4. set {_health} to ceil({_health})
  5. loop all players:
  6. set {_sb} to scoreboard of loop-player-2
  7. if scoreboard objective "healthBottom" in scoreboard {_sb} is not set:
  8. register new scoreboard objective "healthBottom" with criteria "dummy" in {_sb}
  9. set scoreboard objective display name of scoreboard objective "healthBottom" in scoreboard {_sb} to "&cā¤"
  10. set scoreboard objective display slot of scoreboard objective "healthBottom" in scoreboard {_sb} to "BELOW_NAME"
  11. if scoreboard objective "healthTab" in scoreboard {_sb} is not set:
  12. register new scoreboard objective "healthTab" with criteria "dummy" in {_sb}
  13. set scoreboard objective display slot of scoreboard objective "healthTab" in scoreboard {_sb} to "PLAYER_LIST"
  14. set {_objective} to scoreboard objective "healthBottom" from scoreboard {_sb}
  15. set {_score} to scoreboard objective {_objective} score of entry "%loop-player-1%"
  16. set scoreboard score of {_score} to {_health}
  17. set {_objective} to scoreboard objective "healthTab" from scoreboard {_sb}
  18. set {_score} to scoreboard objective {_objective} score of entry "%loop-player-1%"
  19. set scoreboard score of {_score} to {_health}
Advertisement
Add Comment
Please, Sign In to add comment