#checking if a parrot is within radius of the player to determine if the parrot will be dancing
execute as @s at @s if entity @e[type=minecraft:parrot, distance=..2] run advancement grant @s only canopy:party_parrot