Skip to content

Instantly share code, notes, and snippets.

@polypoyo
Created February 6, 2021 18:04
Show Gist options
  • Save polypoyo/4d805684b82a72e35e7156a31a8302e9 to your computer and use it in GitHub Desktop.
Save polypoyo/4d805684b82a72e35e7156a31a8302e9 to your computer and use it in GitHub Desktop.
every 4 ticks:
loop all players:
# set {_ent} to {action health.victim::%loop-player%}
set {_ent} to loop-player's target entity
{_ent} is a living entity
if {_ent}'s health > 0:
send action bar with text "&6&c%({_ent}'s health) * 2%&7/&c%({_ent}'s max health) * 2%❤" to loop-player
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment