Open maradotwebp opened 3 years ago
This could be used for automatically creating serverpacks for a pack version. It would simply skip all the client mods automatically.
I briefly looked into implementing this, but couldn't find a way to tell if mods were client or server only. I suppose it could be implemented as pax add --client <modname>
but that seems a bit annoying. Is there somewhere I can find this data?
Afaik theres no way to tell if a mod is client- or server-side just from the API, the user would have to enter that information themselves, probably something like ./pax mark appleskin --client-only
which would set an installed mod as client- or serverside and save that information somewhere for later use.
Nevertheless I think we'll first need an exporter that doesn't export manifest.json
s, but direct .jar files. (#27)
This may be naive as I'm relatively new to modpack dev, but would something like this work:
zipgrep "net.minecraft.client" MODFILE.jar
If no results are returned, it's a server-only mod?
This may be naive as I'm relatively new to modpack dev, but would something like this work:
zipgrep "net.minecraft.client" MODFILE.jar
If no results are returned, it's a server-only mod?
Nope, or at least maybe but that's not what you need to detect... You need to detect whether is a client-only mod for making a server pack since server-only are also required for the internal server.
Mark some mods as client/server only when installing. Requires a nice server exporter first, of course.