Skip to content

Detect Health v1.1.0

Choose a tag to compare

@mittens4all mittens4all released this 07 May 19:32
· 2 commits to main since this release

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.