Skip to content

Support *.jar.disabled mods #3144

Closed

Description

@rhullah

Enhancement Type

A completely new feature

Describe the enhancement

Some launchers allow you to disable installed mods as a way to prevent it from being used and not having to fully remove it. I usually use this if I'm testing things and likely want to return to using the mod after tests. If I was to do this with the image now, it would just redownload the mod that was renamed .jar.disabled.

I was wondering the possibility of supporting this file naming as an alternative to the mod's expected filename? That way the system recognizes that the mood is there and doesn't redownload it.

Activity

  1. itzg commented on Nov 9, 2024

    @itzg
    Owner

    That's a great idea. I'll research the code around there but off hand I'm thinking that's quite doable.

  2. moved this to In progress in Docker Minecrafton Nov 9, 2024
  3. itzg commented on Nov 9, 2024

    @itzg
    Owner

    Implementation notes

    Manifest integrity check:

    https://github.com/itzg/mc-image-helper/blob/ede488ce5d8e3b90334eb4414228ef8957def448/src/main/java/me/itzg/helpers/files/Manifests.java#L125

    To handle "download to directory" mode's file existence check:

    https://github.com/itzg/mc-image-helper/blob/0161ae3dd56d221695033f9dc1c999b8019dbc6c/src/main/java/me/itzg/helpers/files/ReactiveFileUtils.java#L33

    Specific file download mode, which should probably be enhanced to use same as me.itzg.helpers.http.OutputToDirectoryFetchBuilder#skipExisting(reactor.netty.http.client.HttpClientResponse, java.nio.file.Path)

    https://github.com/itzg/mc-image-helper/blob/df3c8e91de06345db06b9a4a87ecf7854af07aaf/src/main/java/me/itzg/helpers/http/SpecificFileFetchBuilder.java#L59

  4. rhullah commented on Nov 9, 2024

    @rhullah
    ContributorAuthor

    Excellent, thanks for looking into it!

  5. azunaVT commented on Jan 26, 2025

    @azunaVT
    Contributor

    I'm not sure my need was the same here but somewhat close to this issue's content, I needed to disable mods when downloading a generic pack (GTNH in my case) before applying it, I've done a POC to allow disabling certain mods when downloading generic packs:
    azunaVT#1

    @itzg is this something we'd be interested in having in this repo / image? If we could, that'd be great because I wouldn't have to rely on a locally built image or maintain a fork for my specific need 😄 I seems to work fine with manifest generation / checking. Otherwise, feel free to comment on the POC and let me know if there's any improvements / changes we'd need to get my changes into this repo!

  6. itzg commented on Jan 26, 2025

    @itzg
    Owner

    @azunaVT your scenario/solution is not really related, but I appreciate you sharing your enhancement. A PR would be great where I can provide some more precise comments.

  7. linked a pull request that will close this issueUpdate all non-major dependencies #4410on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions