
# -> Debug particles
#execute as @e[type=marker,tag=OverlyRealistic.Player.BodyMarker] at @s run \
    particle soul_fire_flame ~ ~ ~ 0 0 0 0.0001 100 force @a
#particle happy_villager ~ ~ ~ 0 0 0 0.0001 100 force @a

# -> Head hit
execute if entity @s[tag=OverlyRealistic.Player.BodyPartHead] \
    as @p[tag=OverlyRealistic.Player.TempPlayerHurt,dx=0,dy=0,dz=0] run \
        return run \
            function overly_realistic:players/body_damage/attacker_operations/player_hit_head

# -> Torso hit
execute if entity @s[tag=OverlyRealistic.Player.BodyPartTorso] \
    as @p[tag=OverlyRealistic.Player.TempPlayerHurt,dx=0,dy=0,dz=0] run \
        return run \
            function overly_realistic:players/body_damage/attacker_operations/player_hit_torso

# -> Leg hit
execute if entity @s[tag=OverlyRealistic.Player.BodyPartLegs] \
    as @p[tag=OverlyRealistic.Player.TempPlayerHurt,dx=0,dy=0,dz=0] run \
        return run \
            function overly_realistic:players/body_damage/attacker_operations/player_hit_legs
