tag @e[nbt={HurtTime:10s},tag=!unspellable,type=!#no_interaction_p] add hitted
tag @s add hitted_enemy

schedule function items:player_hit_entity/pre_main 1t

advancement revoke @s only items:player_hit_entity
