pax icon indicating copy to clipboard operation
pax copied to clipboard

Mark mods as client/server only

Open maradotwebp opened this issue 3 years ago • 5 comments

Mark some mods as client/server only when installing. Requires a nice server exporter first, of course.

maradotwebp avatar Jun 12 '21 22:06 maradotwebp

This could be used for automatically creating serverpacks for a pack version. It would simply skip all the client mods automatically.

rlnt avatar Jun 13 '21 00:06 rlnt

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?

Badtz13 avatar Jul 07 '21 04:07 Badtz13

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.jsons, but direct .jar files. (#27)

maradotwebp avatar Jul 07 '21 05:07 maradotwebp

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?

hipsterjazzbo avatar Oct 22 '21 00:10 hipsterjazzbo

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.

Dreaming-Codes avatar Jun 08 '23 04:06 Dreaming-Codes