Skip to content

Modrinth Collection Support #3407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
VatraXD opened this issue Apr 8, 2025 · 6 comments
Open

Modrinth Collection Support #3407

VatraXD opened this issue Apr 8, 2025 · 6 comments

Comments

@VatraXD
Copy link

VatraXD commented Apr 8, 2025

Enhancement Type

Improve an existing feature

Describe the enhancement

Hello!

I was wondering if it would be possible to grab modrinth collections and automatically download mods from them.
This would be good because collections don't have to be manually reviewed by modrinth staff, and they would automatically include all versions of the mods, not just ones that has been added to a modpack. For this reason it would need to use the version env variable to figure out which mods are useable on the current version. I think a minimum_required_mods env variable would be also good for this feature, allowing the user to run the collection in a 'partial' mode, or 'all' mode, in which case it could say that some of the mods are not compatible with the selected mc version.

@itzg
Copy link
Owner

itzg commented Apr 8, 2025

I don't see any mention of collections in their API docs

https://docs.modrinth.com/api/

Can you point me to more info?

@itzg itzg added status/waiting on feedback Waiting on feedback from author of issue and removed status/needs triage labels Apr 8, 2025
@VatraXD
Copy link
Author

VatraXD commented Apr 10, 2025

Oh yeah, their API docs don't state anything about collections.
Here is a collection I just made to test: https://modrinth.com/collection/CoXkaZRA
And here is the relevant API call which returns a json: https://api.modrinth.com/v3/collection/CoXkaZRA
The json has project IDs, so it could be implemented fairly easily I think.

@itzg
Copy link
Owner

itzg commented Apr 10, 2025

I'm going to have to wait until they publicly release "collections". I don't even see them listed in their own website search area

image

Perhaps you can contact them and get an official answer on when this will be generally available and documented.

@itzg itzg removed the status/waiting on feedback Waiting on feedback from author of issue label Apr 10, 2025
@VatraXD
Copy link
Author

VatraXD commented Apr 10, 2025

I don't think they will ever be searchable, but the feature itself is already 'public'.
Projects are documented, collections just return a list of projects.

Top right corner:
Image

@itzg
Copy link
Owner

itzg commented Apr 10, 2025

Oh, I think it's making sense to me now. So collections are just groupings of existing modpack(s) and mods?

Why not just use a combo of:

With both those of those you can call out specific modpack/mod versions.

Or is that what you're doing for now and interested in the convenience of collections being a way to pre-declare those lists of modpack+mods?

@VatraXD
Copy link
Author

VatraXD commented Apr 11, 2025

Yes, collections are just groups of modpacks and/or mods.
To be honest I am not sure what my reasoning was. It might've had something to do with simplicity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants