Detecting when a player takes damage - predicates?
I want to teleport a player with the /spreadplayers command whenever they take damage. I don't think this can be achieved with the health scoreboard since I only want it to be when they take damage, not when they're below max health. I tried looking this up but I couldn't really find anything. Any help on how to achieve this would be greatly appreciated!