Jump to content

File is for an older version of Forge and cannot be loaded - n00b error


Recommended Posts

Posted

I have an entirely blank mod that I have built using gradle and am now trying to test in Minecraft (by copying the gradle-built jar into the mods folder of my Minecraft installation).

However, on startup I get the following warning:

image.png.44b4d637efa7956f26b6eacd0ffd3c00.png

I'm certain this is a stupid error, but it's not clear to me what I need to update in the build.gradle file. This is what mine looks like currently:

buildscript {
    repositories {
        jcenter()
        maven { url = "http://files.minecraftforge.net/maven" }
        flatDir {
            dirs 'libs'
        }
    }
    dependencies {
        classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
    }
}
apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.


version = "1.0"
group = "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "rosemary"

sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
compileJava {
    sourceCompatibility = targetCompatibility = '1.8'
}

minecraft {
    version = "1.12.2-14.23.5.2768"
    runDir = "run"
    
    // the mappings can be changed at any time, and must be in the following format.
    // snapshot_YYYYMMDD   snapshot are built nightly.
    // stable_#            stables are built at the discretion of the MCP team.
    // Use non-default mappings at your own risk. they may not always work.
    // simply re-run your setup task after changing the mappings to update your workspace.
    mappings = "snapshot_20171003"
    // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}

The minecraft version definitely needs to be updated (I'm running 1.15.2, and Forge version 1.15.2-forge-31.1.0), but I'm not sure where to find this snapshot thing. I assume I can't just replace the 1.12.2 with 1.15.2.

Thanks!

Posted
10 minutes ago, Raeglyn said:

The minecraft version definitely needs to be updated (I'm running 1.15.2, and Forge version 1.15.2-forge-31.1.0), but I'm not sure where to find this snapshot thing.

Go to files.minecraftforge.net and download the latest mdk for 1.15.2 and you can follow this tutorial I have to setup a workspace. Assuming you are using eclipse.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
8 hours ago, Raeglyn said:

minecraft {

    version = "1.12.2-14.23.5.2768"

This says you're targeting 1.12

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.