Recreate: place in repeating command block or ticking mcfunction file:
execute as @e[nbt={HurtTime:10s}] run say hi
or
execute as @a[nbt={HurtTime:10s}] run say hi
Shoot self with arrows. Note that shooting other mobs works as expected.
I did not test this with other players, only in single player.
Comments 3
maybe works as intended. relates to MC-117360
try to execute /execute as @e[nbt={HurtTime:9s}] run say hi
does it work?