Lately, I've been trying to create a custom boss in minecraft.
I want it so when its health is less than x, or when it has lost a quarter of its health, something happens.
However, when I used this:
/testfor @e[type=cave_spider,name=Joe,score_bossHealth_min=9,score_bossHealth=12]
It didn't work. Should I create a scoreboard for this or something?