#checking if a parrot is withing 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 birbmc:party_parrot