gear limiting datapack

I have no idea where to start, so use simple terms :p I'm trying to make a datapack for my SMP where if you have 75+ advancements you can use wooden tools, 150+ you can use stone tools, 225+ you can use iron + gold tools, 300 for diamond and 375 for gold. it would maybe say something in chat like "you can not use that item!" i also want it to have a similar thing but for armor. you every 25 advancements, you unlock half an armor bar (the stuff above the hearts) - for this, if you are above the limit, it would tell you you can't use that much armor and none of your armor would help you while you're above the limit. every time you unlock something new (like a new half an armor bar) it would tell everyone in the minecraft chat (Username unlocked their 9.5th armor slot!) so everyone could respond with W etc etc the advancements are from the blazeandcaves advancement datapack, not vanilla minecraft. could anyone help me with this or just explain where to start? (like some software for datapack making etc)

Continue to help post