Advancements are just json files in data/MODID/advancements in your resources.
Check out vanilla advancements to see how they work things.
Also, the minecraft wiki page on the advancements json format is helpful: https://minecraft.gamepedia.com/Advancements/JSON_format
Hope this helps! Try making some simple ones, and if you have trouble, post logs/code/json (or logs, and a link to a github would be better), and I'm sure someone will give you a hand.