1.0
Compatibility
Changes
A simple HTTP server for 1.20.1, integrating some of the KubeJS api requests from 1.21.1 on port 61423 (or if it's fails, try to use port 61424, .... up to 10 tries)
You can get assets, models, item list and block list easily, just opening your browser and put http://localhost:<port><url>. Useful to get assets and models automatically with simple requests to the browser instead of going for each mod's repository or opening the mod file using external tools
/api/mods Expected return (as JSON):
[ { "id": "my_mod_id", "name": "My Super mod installed", "version": "1.0" },
{ "id": "industrialforegoing", "name": "Industrial Foregoing", "version": "<version>" }, .... ]
/api/client/search/blocks: Expected return (as JSON):
[ { "id": "minecraft:air", "name": "Air" }, { "id": "minecraft:stone", "name": "Stone" } ]
/api/client/search/items Expected return (as JSON)
{ "world": false, "icon_path_root": "http://localhost:61423/img/64/item/", "results": [ { "id": "minecraft:stone", "name": "Stone", "icon_path": "stone", }, ... ] }
/api/client/assets/list/<models or textures/blocks or textures/item> Expected result (as JSON):
*[ * "<mod_id>": [ * "a.png", * "b.png", * "my_super_block.json", * "model.obj" * ], ... *]
/api/client/assets/get/<namespace>/<path to the file> Returns the content of the file asked , {} or empty if failed or doesn't exist
/img/<size>/<item or block>/<namespace>/<id_block> Returns a <size>x<size> image as .png
Returns something similar that the original mod, except if it has a custom loader, which returns a "fake" json For example, GTCEU using a custom loader, it will turn that into a standard MC representation
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:Ry3dNHF0:dYKqTPU4"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:Ry3dNHF0:dYKqTPU4"
}

