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:project-save-the-pets:3.0.6-old.1.16.5+2022.2e6cccc6e1.forge