This is still broken in 1.19.83
BUT THERES A WAY AROUND IT
/execute as @e at @s run execute positioned ~ ~ ~ run say test
This works in realms because the "positioned" subcommand needs to be right after "execute" to work, though this should be fixed still
Edit It's worse than I thought not just when an enemy is half a heart now it does it when there just low
I have Edited my Post
This is still broken in 1.19.83
BUT THERES A WAY AROUND IT
/execute as @e at @s run execute positioned ~ ~ ~ run say test
This works in realms because the "positioned" subcommand needs to be right after "execute" to work, though this should be fixed still