stats entity @s set AffectedItems @s BEETROOT

# Find beetroot count, grant advancement if 5+

clear @s minecraft:beetroot_soup -1 0
advancement grant @s[score_BEETROOT_min=8] only custom:millionaire/teamlead beetrootCount

advancement revoke @s only custom:millionaire/beetrootCount