Repository navigation
Detect Health v1.1.0
Detects player health and assigns value to a scoreboard objective, detect:health.
You can then run your own commands using the score selector to target players:
execute as @a[scores={detect:health=20}] run <command>Changelog v1.1.0
Relocated getting/adding scoreboard objective method from inside function to when script initializes for better performance.