Hey, I'm trying to make a custom Advancement that is granted when you have unlocked multiple advancements as a reward for completing them.
I've have no trouble setting up the advancement other than getting the criterion to work, being how to detect if the player has gotten the advancements needed or not.
I've tried using a ServerTickEvents.START_SERVER_TICK event in my ModInitalizer class and then check every tick to see if they have the advancement completed using ServerPlayerEntity..getAdvancementTracker().getProgress(), but I have no idea how to get the AdvancementEntry needed for the getProgress() method.
I also don't see any vanilla criteria for this purpose, nor do I know of any events that detect when an advancement has been completed by a player.
Please let me know if you know any way to solve this, as it's the last major part of the mod that I have until release. Thank you very much!