ok so this is a bit embarrassing, turns out i forgot to switch one of the versions which made it so that it doesnt actually work on mac, but I've checked it again and swapped the version so now it should hopefully work
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }