I can not guarantee this works on any version other than 1.21.1. There may be some incompatabilities which I do not know about. But it doesn't hurt to try, right?
Optional dependencies
Respackopts
Any compatible version
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" }