advancement doesn't get revoked in a function
summon block_display ~ ~1 ~ {block_state:{Name:carved_pumpkin}} scoreboard players set @s yafa_wand_cd 20 advancement revoke @p only yafaland:item/yafa_wand
The first 2 commands work, but the advancement still doesn't get revoked