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" }
Maven coordinates:
maven.modrinth:teeny-coal:1.1.1-1.16.x-1.17.x-1.18.x-1.19-experimental-snapshot