Jump to content

Forge mod compatible with multiple forge versions (example: 1.16.2 to 1.16.5)


Xyndra

Recommended Posts

I am trying to create a mod which supports multiple forge versions at the same time (but only for one root version)

These are the relevant things of mod.toml:

loaderVersion="[33,36]"
version="${file.jarVersion}"
[[dependencies.examplemod]]
    modId="forge"
    mandatory=true
    versionRange="[33,36}"
    ordering="NONE"
    side="BOTH"

[[dependencies.examplemod]]
    modId="minecraft"
    mandatory=true
    versionRange="[1.16.2,1.17)"
    ordering="NONE"
    side="BOTH"

And these are the relevant things of build.gradle:

buildscript {
    repositories {
        maven { url = 'https://maven.minecraftforge.net' }
        mavenCentral()
    }
    dependencies {
        classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.+', changing: true
    }
}
minecraft {
    // ...
    mappings channel: 'snapshot', version: '20200514-1.16'
    // ...
}
dependencies {
    minecraft 'net.minecraftforge:forge:1.16.2-33.0.61'
}

You can find the console error log here:

https://pastebin.com/hyewQ0cV

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.