
# -> Reset adv trigger
advancement revoke @s only overly_realistic:animals/hit_corpse_chicken

# -> Tag player
tag @s add OverlyRealistic.Player.TempPlayerHitCorpse

# -> Operate on corpse
execute as @n[type=chicken,tag=OverlyRealistic.Animal.IsAnimalCorpse,distance=..16] at @s run \
    function overly_realistic:animals/corpse_hit/chicken/corpse_operate

# -> Untag player
tag @s remove OverlyRealistic.Player.TempPlayerHitCorpse
