How to prevent the use of swords

I want to prevent the use of swords until a Stage is hit from the GameStages mod. Is this smth a datapack can do?

Continue to help post