Give players an item every time they get any advancement/challenge?
Hi, I'm wondering what would be the best way to go around rewarding a player with a set quantity of items every time they get ANY advancement or Challenge. Hopefully granting more for challenges than advancements. I have seen people suggest editing every single advancement's rewards, but I am working on this for a modded minecraft server so I wonder if there is a way to generalize this.
I'm on 1.20.1 JE
Thanks in advance!